/*
MySQL Backup
Database: jqp-admin-v2
Backup Time: 2024-07-12 09:15:28
*/

SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_dic`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_dic_item`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_flow`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_flow_instance`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_flow_instance_task`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_menu`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_page`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_role`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_test_order`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`jqp_user`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`magic_api_file`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`spring_session`;
DROP TABLE IF EXISTS `jqp-admin-v2`.`spring_session_attributes`;
CREATE TABLE `jqp_dic` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '主键',
  `code` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '编号',
  `name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='字典';
CREATE TABLE `jqp_dic_item` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '主键',
  `dic_id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '数据字典id',
  `name` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '名称',
  `value` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='字典明细';
CREATE TABLE `jqp_flow` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '主键',
  `code` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '编号',
  `name` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '名称',
  `table_name` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '主表',
  `status_field` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态字段',
  `status_dic` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态字典',
  `page_code` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '页面编号',
  `graph_data` longtext COLLATE utf8mb4_bin COMMENT '流程数据',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程';
CREATE TABLE `jqp_flow_instance` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL,
  `flow_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程id',
  `name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程实例名称',
  `ref_id` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '关联id',
  `start_time` datetime DEFAULT NULL COMMENT '开始时间',
  `end_time` datetime DEFAULT NULL COMMENT '结束时间',
  `current_task_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '当前任务id',
  `current_task_name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '当前任务名称',
  `create_user_id` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程发起人id',
  `create_user_name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程发起人',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程实例';
CREATE TABLE `jqp_flow_instance_task` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL,
  `flow_instance_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程实例id',
  `task_name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务名称',
  `task_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务id',
  `start_time` datetime DEFAULT NULL COMMENT '开始时间',
  `end_time` datetime DEFAULT NULL COMMENT '结束时间',
  `edge_id` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流转id',
  `edge_name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流转名称',
  `candidate_user_ids` varchar(2000) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '候选人id列表',
  `audit_user_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核人id',
  `jointly_sign_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '会签id',
  `jointly_sign_complete_time` datetime DEFAULT NULL COMMENT '会签完成时间',
  `files` varchar(2000) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '附件',
  `imgs` varchar(1024) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '图片',
  `remark` varchar(1024) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  `page_code` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核页面',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程实例任务';
CREATE TABLE `jqp_menu` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单名称',
  `url` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单url',
  `parent_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '父菜单',
  `seq` int(10) DEFAULT NULL COMMENT '序号',
  `auth_code` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '权限编号',
  `urls` longtext COLLATE utf8mb4_bin COMMENT '接口列表',
  `is_button` varchar(10) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否按钮',
  `menu_type` varchar(10) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单类型',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='菜单';
CREATE TABLE `jqp_page` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '主键',
  `code` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '编号',
  `name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称',
  `config` longtext COLLATE utf8mb4_bin COMMENT '页面配置',
  PRIMARY KEY (`id`),
  UNIQUE KEY `jqp_page_code` (`code`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='页面';
CREATE TABLE `jqp_role` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '主键',
  `name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称',
  `code` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '编号',
  `menu_ids` longtext COLLATE utf8mb4_bin COMMENT '菜单id列表',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='角色';
CREATE TABLE `jqp_test_order` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL,
  `order_code` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL,
  `customer_name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL,
  `order_status` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
CREATE TABLE `jqp_user` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '主键',
  `account` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '账号',
  `salt` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '密码盐',
  `password` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '密码',
  `name` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '姓名',
  `role_ids` longtext COLLATE utf8mb4_bin COMMENT '角色id列表',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='用户';
CREATE TABLE `magic_api_file` (
  `file_path` varchar(512) NOT NULL COMMENT '路径',
  `file_content` mediumtext COMMENT '内容',
  PRIMARY KEY (`file_path`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='magic-api存储';
CREATE TABLE `spring_session` (
  `PRIMARY_ID` char(36) NOT NULL DEFAULT '',
  `SESSION_ID` char(36) NOT NULL DEFAULT '',
  `CREATION_TIME` bigint(20) NOT NULL,
  `LAST_ACCESS_TIME` bigint(20) NOT NULL,
  `MAX_INACTIVE_INTERVAL` int(11) NOT NULL,
  `PRINCIPAL_NAME` varchar(100) DEFAULT NULL,
  `EXPIRY_TIME` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`PRIMARY_ID`) USING BTREE,
  KEY `SPRING_SESSION_IX1` (`LAST_ACCESS_TIME`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='session';
CREATE TABLE `spring_session_attributes` (
  `SESSION_PRIMARY_ID` char(36) NOT NULL DEFAULT '',
  `ATTRIBUTE_NAME` varchar(100) NOT NULL DEFAULT '',
  `ATTRIBUTE_BYTES` blob,
  KEY `SPRING_SESSION_ATTRIBUTES_IX1` (`SESSION_PRIMARY_ID`) USING BTREE,
  CONSTRAINT `SPRING_SESSION_ATTRIBUTES_ibfk_1` FOREIGN KEY (`SESSION_PRIMARY_ID`) REFERENCES `spring_session` (`PRIMARY_ID`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='session属性';
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_dic` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_dic`;
INSERT INTO `jqp-admin-v2`.`jqp_dic` (`id`,`code`,`name`) VALUES ('1795988037337346048', 'whether', '是否'),('1801160858527068160', 'menu_type', '菜单类型'),('1806582325381165056', 'order_status', '订单状态');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_dic_item` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_dic_item`;
INSERT INTO `jqp-admin-v2`.`jqp_dic_item` (`id`,`dic_id`,`name`,`value`) VALUES ('1795988080597397504', '1795988037337346048', '是', 'yes'),('1795988118547460096', '1795988037337346048', '否', 'no'),('1801160949342138368', '1801160858527068160', '电脑端', 'pc'),('1801160976915492864', '1801160858527068160', '移动端', 'mobile'),('1806582354015678464', '1806582325381165056', '开立', '1'),('1806582375024947200', '1806582325381165056', '设计师审核', '2'),('1806582522718973952', '1806582325381165056', '审核不通过', '3'),('1806582549780623360', '1806582325381165056', '审核通过', '4'),('1808063480848691200', '1806582325381165056', '管理员审核', '5');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_flow` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_flow`;
INSERT INTO `jqp-admin-v2`.`jqp_flow` (`id`,`code`,`name`,`table_name`,`status_field`,`status_dic`,`page_code`,`graph_data`) VALUES ('1806578508337991680', 'test01', '测试01', 'jqp_test_order', 'order_status', 'order_status', 'orderFlowView', '{\"nodes\":[{\"id\":\"Event_3k36no3\",\"type\":\"JqpStart\",\"x\":400,\"y\":360,\"properties\":{},\"text\":{\"x\":400,\"y\":400,\"value\":\"开始节点\"}},{\"id\":\"Activity_2hrdovj\",\"type\":\"JqpUserTask\",\"x\":620,\"y\":360,\"properties\":{\"status\":\"1,3\",\"userType\":\"提交人审核\",\"checkType\":\"任意成员审核通过\",\"page\":\"orderFlowView2\"},\"text\":{\"x\":620,\"y\":360,\"value\":\"编辑订单\"}},{\"id\":\"Activity_2qb86ho\",\"type\":\"JqpUserTask\",\"x\":1060,\"y\":220,\"properties\":{\"status\":\"2\",\"userType\":\"角色\",\"positionCodes\":\"designer\",\"checkType\":\"任意成员审核通过\",\"roleCodes\":\"designer\"},\"text\":{\"x\":1060,\"y\":220,\"value\":\"设计师审核\"}},{\"id\":\"Event_0qoelp4\",\"type\":\"JqpEnd\",\"x\":1340,\"y\":360,\"properties\":{},\"text\":{\"x\":1340,\"y\":400,\"value\":\"结束节点\"}},{\"id\":\"Gateway_0r0g2o3\",\"type\":\"JqpCondition\",\"x\":840,\"y\":360,\"properties\":{},\"text\":{\"x\":840,\"y\":400,\"value\":\"条件判断\"}},{\"id\":\"Activity_33fpbe2\",\"type\":\"JqpUserTask\",\"x\":1080,\"y\":520,\"properties\":{\"status\":\"5\",\"userType\":\"角色\",\"roleCodes\":\"admin\",\"checkType\":\"任意成员审核通过\",\"page\":\"orderFlowView2\"},\"text\":{\"x\":1080,\"y\":520,\"value\":\"管理员审核\"}}],\"edges\":[{\"id\":\"Flow_2tvsmkg\",\"type\":\"JqpSequenceFlow\",\"sourceNodeId\":\"Event_3k36no3\",\"targetNodeId\":\"Activity_2hrdovj\",\"startPoint\":{\"x\":418,\"y\":360},\"endPoint\":{\"x\":570,\"y\":360},\"properties\":{},\"pointsList\":[{\"x\":418,\"y\":360},{\"x\":570,\"y\":360}]},{\"id\":\"Flow_1f113dd\",\"type\":\"JqpSequenceFlow\",\"sourceNodeId\":\"Activity_2qb86ho\",\"targetNodeId\":\"Event_0qoelp4\",\"startPoint\":{\"x\":1110,\"y\":220},\"endPoint\":{\"x\":1340,\"y\":342},\"properties\":{\"status\":\"4\"},\"text\":{\"x\":1225,\"y\":220,\"value\":\"审核通过\"},\"pointsList\":[{\"x\":1110,\"y\":220},{\"x\":1340,\"y\":220},{\"x\":1340,\"y\":342}]},{\"id\":\"Flow_0qat7fj\",\"type\":\"JqpSequenceFlow\",\"sourceNodeId\":\"Activity_2hrdovj\",\"targetNodeId\":\"Gateway_0r0g2o3\",\"startPoint\":{\"x\":670,\"y\":360},\"endPoint\":{\"x\":815,\"y\":360},\"properties\":{\"status\":\"1\"},\"text\":{\"x\":743,\"y\":360,\"value\":\"提交\"},\"pointsList\":[{\"x\":670,\"y\":360},{\"x\":815,\"y\":360}]},{\"id\":\"Flow_2pvpppv\",\"type\":\"JqpSequenceFlow\",\"sourceNodeId\":\"Gateway_0r0g2o3\",\"targetNodeId\":\"Activity_33fpbe2\",\"startPoint\":{\"x\":840,\"y\":385},\"endPoint\":{\"x\":1030,\"y\":520},\"properties\":{\"status\":\"5\",\"checkType\":\"表达式\",\"checkConfig\":\"obj.order_code>\'R-010\'\"},\"text\":{\"x\":901,\"y\":520,\"value\":\"订单号大于10\"},\"pointsList\":[{\"x\":840,\"y\":385},{\"x\":840,\"y\":520},{\"x\":1030,\"y\":520}]},{\"id\":\"Flow_3tqcve2\",\"type\":\"JqpSequenceFlow\",\"sourceNodeId\":\"Gateway_0r0g2o3\",\"targetNodeId\":\"Activity_2qb86ho\",\"startPoint\":{\"x\":840,\"y\":335},\"endPoint\":{\"x\":1010,\"y\":220},\"properties\":{\"status\":\"2\",\"checkType\":\"表达式\",\"checkConfig\":\"obj.order_code<=\'R-010\'\"},\"text\":{\"x\":904,\"y\":220,\"value\":\"订单号小于等于10\"},\"pointsList\":[{\"x\":840,\"y\":335},{\"x\":840,\"y\":220},{\"x\":1010,\"y\":220}]},{\"id\":\"Flow_34sb22l\",\"type\":\"JqpSequenceFlow\",\"sourceNodeId\":\"Activity_33fpbe2\",\"targetNodeId\":\"Event_0qoelp4\",\"startPoint\":{\"x\":1130,\"y\":520},\"endPoint\":{\"x\":1340,\"y\":378},\"properties\":{\"status\":\"4\"},\"text\":{\"x\":1248,\"y\":520,\"value\":\"审核通过\"},\"pointsList\":[{\"x\":1130,\"y\":520},{\"x\":1340,\"y\":520},{\"x\":1340,\"y\":378}]},{\"id\":\"Flow_1u0960f\",\"type\":\"JqpSequenceFlow\",\"sourceNodeId\":\"Activity_33fpbe2\",\"targetNodeId\":\"Activity_2hrdovj\",\"startPoint\":{\"x\":1080,\"y\":560},\"endPoint\":{\"x\":620,\"y\":400},\"properties\":{\"status\":\"3\"},\"text\":{\"x\":788,\"y\":590,\"value\":\"审核不通过\"},\"pointsList\":[{\"x\":1080,\"y\":560},{\"x\":1080,\"y\":590},{\"x\":620,\"y\":590},{\"x\":620,\"y\":400}]},{\"id\":\"Flow_3cmmkek\",\"type\":\"JqpSequenceFlow\",\"sourceNodeId\":\"Activity_2qb86ho\",\"targetNodeId\":\"Activity_2hrdovj\",\"startPoint\":{\"x\":1060,\"y\":180},\"endPoint\":{\"x\":620,\"y\":320},\"properties\":{\"status\":\"3\"},\"text\":{\"x\":837,\"y\":150,\"value\":\"审核不通过\"},\"pointsList\":[{\"x\":1060,\"y\":180},{\"x\":1060,\"y\":150},{\"x\":620,\"y\":150},{\"x\":620,\"y\":320}]}]}');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_flow_instance` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_flow_instance`;
INSERT INTO `jqp-admin-v2`.`jqp_flow_instance` (`id`,`flow_id`,`name`,`ref_id`,`start_time`,`end_time`,`current_task_id`,`current_task_name`,`create_user_id`,`create_user_name`) VALUES ('1808685406063370240', '1806578508337991680', '测试订单-R-011', '1808065600104673280', '2024-07-04 10:12:59', '2024-07-04 10:13:09', NULL, NULL, '1796000120376389632', '管理员'),('1808687157608914944', '1806578508337991680', '测试订单-R-011', '1808065600104673280', '2024-07-04 10:19:57', '2024-07-04 10:20:19', NULL, NULL, '1796000120376389632', '管理员'),('1808687576527609856', '1806578508337991680', '测试订单-R-011', '1808065600104673280', '2024-07-04 10:21:37', NULL, '1808740802954252288', '设计师审核', '1796000120376389632', '管理员');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_flow_instance_task` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_flow_instance_task`;
INSERT INTO `jqp-admin-v2`.`jqp_flow_instance_task` (`id`,`flow_instance_id`,`task_name`,`task_id`,`start_time`,`end_time`,`edge_id`,`edge_name`,`candidate_user_ids`,`audit_user_id`,`jointly_sign_id`,`jointly_sign_complete_time`,`files`,`imgs`,`remark`,`page_code`) VALUES ('1808685406067564544', '1808685406063370240', '编辑订单', 'Activity_2hrdovj', '2024-07-04 10:12:59', '2024-07-04 10:12:59', 'Flow_0qat7fj,Flow_2pvpppv', '提交,订单号大于10', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808685406096924672', '1808685406063370240', '管理员审核', 'Activity_33fpbe2', '2024-07-04 10:12:59', '2024-07-04 10:13:09', 'Flow_34sb22l', '审核通过', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808687157613109248', '1808687157608914944', '编辑订单', 'Activity_2hrdovj', '2024-07-04 10:19:57', '2024-07-04 10:19:57', 'Flow_0qat7fj,Flow_2pvpppv', '提交,订单号大于10', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808687157642469376', '1808687157608914944', '管理员审核', 'Activity_33fpbe2', '2024-07-04 10:19:57', '2024-07-04 10:20:19', 'Flow_34sb22l', '审核通过', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808687576531804160', '1808687576527609856', '编辑订单', 'Activity_2hrdovj', '2024-07-04 10:21:37', '2024-07-04 10:21:37', 'Flow_0qat7fj,Flow_2pvpppv', '提交,订单号大于10', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808687576565358592', '1808687576527609856', '管理员审核', 'Activity_33fpbe2', '2024-07-04 10:21:37', '2024-07-04 10:22:08', 'Flow_1u0960f', '审核不通过', '1796000120376389632', '1796000120376389632', NULL, NULL, '/admin/file/download/2024/07/04/test.html,/admin/file/download/2024/07/04/ouhao.txt', '/admin/file/download/2024/07/04/802_151030141127_1.jpg,/admin/file/download/2024/07/04/微信图片_20240412110422.jpg', '1111', NULL),('1808687707922571264', '1808687576527609856', '编辑订单', 'Activity_2hrdovj', '2024-07-04 10:22:08', '2024-07-04 11:33:24', 'Flow_0qat7fj,Flow_2pvpppv', '提交,订单号大于10', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808705641923465216', '1808687576527609856', '管理员审核', 'Activity_33fpbe2', '2024-07-04 11:33:24', '2024-07-04 11:37:13', 'Flow_1u0960f', '审核不通过', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808706604180688896', '1808687576527609856', '编辑订单', 'Activity_2hrdovj', '2024-07-04 11:37:13', '2024-07-04 11:43:09', 'Flow_0qat7fj,Flow_2pvpppv', '提交,订单号大于10', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808708094995714048', '1808687576527609856', '管理员审核', 'Activity_33fpbe2', '2024-07-04 11:43:09', '2024-07-04 11:43:54', 'Flow_1u0960f', '审核不通过', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, NULL),('1808708285995929600', '1808687576527609856', '编辑订单', 'Activity_2hrdovj', '2024-07-04 11:43:54', '2024-07-04 11:44:02', 'Flow_0qat7fj,Flow_2pvpppv', '提交,订单号大于10', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, 'orderFlowView2'),('1808708319269343232', '1808687576527609856', '管理员审核', 'Activity_33fpbe2', '2024-07-04 11:44:02', '2024-07-04 13:52:19', 'Flow_1u0960f', '审核不通过', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, 'orderFlowView2'),('1808740600927211520', '1808687576527609856', '编辑订单', 'Activity_2hrdovj', '2024-07-04 13:52:19', '2024-07-04 13:53:07', 'Flow_0qat7fj,Flow_3tqcve2', '提交,订单号小于等于10', '1796000120376389632', '1796000120376389632', NULL, NULL, NULL, NULL, NULL, 'orderFlowView2'),('1808740802954252288', '1808687576527609856', '设计师审核', 'Activity_2qb86ho', '2024-07-04 13:53:07', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_menu` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_menu`;
INSERT INTO `jqp-admin-v2`.`jqp_menu` (`id`,`name`,`url`,`parent_id`,`seq`,`auth_code`,`urls`,`is_button`,`menu_type`) VALUES ('1794983115506450432', '系统配置', NULL, NULL, 10, '', NULL, 'no', 'pc'),('1794983252077182976', 'magic-api', '/page/magic-api', '1794983115506450432', 10, '', '/magic/web/**', 'no', 'pc'),('1794983339717165056', '页面配置', '/page/page', '1794983115506450432', 20, '', '/page/*\n/html/*\n/admin/jqpPage/*\n/admin/common/jqp_page/*\n/amis-editor/**\n/admin/jqpPage/get/*', 'no', 'pc'),('1794983404615630848', '菜单配置', '/page/menu', '1794983115506450432', 30, '', '/admin/jqpMenu/*\n/admin/common/jqp_menu/*', 'no', 'pc'),('1795361831097131008', '数据字典', '/page/dic', '1794983115506450432', 40, '', NULL, 'no', 'pc'),('1795999099986112512', '组织机构', NULL, NULL, 20, '', NULL, 'no', 'pc'),('1795999158010114048', '用户管理', '/page/user', '1795999099986112512', 10, '', NULL, 'no', 'pc'),('1796021518184476672', '角色管理', '/page/role', '1795999099986112512', 8, '', NULL, 'no', 'pc'),('1797461892664856576', '查询', NULL, '1795361831097131008', 10, 'jqpDicQuery', '/admin/jqpDic/query\n/admin/jqpDic/items/*', 'yes', 'pc'),('1797462245183524864', '编辑', NULL, '1795361831097131008', 20, 'jqpDicEdit', '/admin/common/jqp_dic/save\n/admin/common/jqp_dic_item/save', 'yes', 'pc'),('1797463060262621184', '删除', NULL, '1795361831097131008', 30, 'jqpDicDelete', '/admin/common/jqp_dic/delete/*\n/admin/common/jqp_dic_item/delete/*', 'yes', 'pc'),('1797507699740971008', '查询', NULL, '1796021518184476672', 10, NULL, '/admin/jqpRole/query', 'yes', 'pc'),('1797507811703721984', '编辑', NULL, '1796021518184476672', 20, 'jqpRoleEdit', '/admin/common/jqp_role/save', 'yes', 'pc'),('1797508046500859904', '删除', NULL, '1796021518184476672', 30, 'jqpRoleDelete', '/admin/common/jqp_role/delete/*', 'yes', 'pc'),('1797508359169445888', '查询', NULL, '1795999158010114048', 10, NULL, '/admin/jqpUser/query\n/admin/jqpRole/query', 'yes', 'pc'),('1797508512819384320', '编辑', NULL, '1795999158010114048', 20, 'jqpUserEdit', '/admin/jqpUser/save', 'yes', 'pc'),('1797508671728979968', '删除', NULL, '1795999158010114048', 30, 'jqpUserDelete', '/admin/common/jqp_user/save', 'yes', 'pc'),('1801422856271683584', '导航1', NULL, NULL, 1000, NULL, NULL, 'no', 'mobile'),('1801423035691425792', '导航2', NULL, NULL, 1010, NULL, NULL, 'no', 'mobile'),('1801423228889456640', '测试1', '/page/mobileTest1', '1801422856271683584', 10, NULL, NULL, 'no', 'mobile'),('1801423373240623104', '测试2', '/page/mobileTest2', '1801422856271683584', 20, NULL, NULL, 'no', 'mobile'),('1801423519709913088', '测试11', NULL, '1801423035691425792', 10, NULL, NULL, 'no', 'mobile'),('1801423640728166400', '测试1', '/page/mobileTest1', '1801423519709913088', 10, NULL, NULL, 'no', 'mobile'),('1801423747569672192', '测试22', '/page/mobileTest2', '1801423035691425792', 20, NULL, NULL, 'no', 'mobile'),('1801442562823094272', '用户管理', '/page/mobileUser', '1801422856271683584', 30, NULL, NULL, 'no', 'mobile'),('1801448762683883520', '我的', '/page/mobileMy', NULL, 1020, NULL, NULL, 'no', 'mobile'),('1803720644841897984', '文件管理', '/page/file', '1794983115506450432', 50, NULL, '/admin/file/*', 'no', 'pc'),('1806577094308020224', '流程管理', '/page/flow', '1794983115506450432', 60, NULL, NULL, 'no', 'pc'),('1808065441660645376', '测试订单', '/page/testOrder', '1794983115506450432', 70, NULL, NULL, 'no', 'pc'),('1808667914096025600', '流程任务', '/page/flowInstanceTask', '1794983115506450432', 80, NULL, NULL, 'no', 'pc');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_page` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_page`;
INSERT INTO `jqp-admin-v2`.`jqp_page` (`id`,`code`,`name`,`config`) VALUES ('1793843392016748544', 'page', '页面列表', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"id\":\"u:4fa5182eac7c\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpPage/query\"},\"bulkActions\":[],\"itemActions\":[],\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_page/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"name\":\"id\",\"label\":\"ID\",\"id\":\"u:3945190bdeb9\",\"hidden\":true},{\"type\":\"input-text\",\"name\":\"code\",\"label\":\"编号\",\"id\":\"u:9796dc5b1600\",\"required\":true},{\"type\":\"input-text\",\"name\":\"name\",\"label\":\"名称\",\"id\":\"u:a32b330339dc\",\"required\":true}],\"id\":\"u:61b981f2bcb0\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:a7566f37b194\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:a288c0de2d1d\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:40236c4663cd\"}],\"actionType\":\"dialog\"},\"id\":\"u:41c40f013ed6\"},{\"type\":\"export-excel\",\"id\":\"u:7ca62505ed72\",\"label\":\"导出\",\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpPage/query\",\"data\":{\"page\":1,\"perPage\":9999999,\"name\":\"${name}\",\"code\":\"${code}\"}}}],\"perPageAvailable\":[10],\"messages\":{},\"primaryField\":\"id\",\"quickSaveItemApi\":{\"url\":\"/admin/jqpPage/save\",\"method\":\"post\"},\"perPageField\":\"perPage\",\"pageField\":\"page\",\"autoGenerateFilter\":true,\"columns\":[{\"name\":\"code\",\"label\":\"编号\",\"type\":\"text\",\"id\":\"u:235942eed659\",\"searchable\":true,\"placeholder\":\"-\",\"sortable\":true},{\"type\":\"text\",\"label\":\"名称\",\"name\":\"name\",\"id\":\"u:4da3285d4d33\",\"searchable\":true,\"placeholder\":\"-\",\"sortable\":true},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"api\":\"post:/admin/common/jqp_page/save\",\"body\":[{\"name\":\"id\",\"label\":\"ID\",\"id\":\"u:0e3ae1f505ef\",\"type\":\"input-text\",\"hidden\":true},{\"name\":\"code\",\"label\":\"编号\",\"id\":\"u:d7345630e2a2\",\"type\":\"input-text\",\"required\":true},{\"label\":\"名称\",\"name\":\"name\",\"id\":\"u:2020d5bc2c41\",\"type\":\"input-text\",\"required\":true}],\"id\":\"u:9e266daf4f89\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:c8c0a4eb4dca\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:d3e4dc563d3e\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:b9a093d00b74\"}],\"actionType\":\"dialog\"},\"id\":\"u:37349e93186b\"},{\"type\":\"button\",\"label\":\"复制\",\"onEvent\":{\"click\":{\"actions\":[]}},\"id\":\"u:c2cd463d509d\",\"level\":\"primary\",\"actionType\":\"dialog\",\"dialog\":{\"type\":\"dialog\",\"id\":\"u:3999eede472a\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:1327df8cba4a\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:780c05b71439\"}],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"title\":\"复制\",\"body\":[{\"id\":\"u:96f9e1d1defb\",\"type\":\"form\",\"title\":\"表单\",\"mode\":\"horizontal\",\"dsType\":\"api\",\"feat\":\"Insert\",\"body\":[{\"name\":\"code\",\"label\":\"编号\",\"type\":\"input-text\",\"id\":\"u:a21e793b05cf\",\"required\":true},{\"name\":\"name\",\"label\":\"名称\",\"type\":\"input-text\",\"id\":\"u:083a364ef8fe\",\"required\":true},{\"name\":\"config\",\"label\":\"配置\",\"type\":\"editor\",\"id\":\"u:bb23d4c98d5d\",\"language\":\"json\",\"hidden\":true}],\"actions\":[{\"type\":\"button\",\"label\":\"提交\",\"onEvent\":{\"click\":{\"actions\":[{\"actionType\":\"submit\",\"componentId\":\"u:96f9e1d1defb\"}]}},\"level\":\"primary\"}],\"resetAfterSubmit\":true,\"api\":{\"url\":\"/admin/common/jqp_page/save\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}}}]}},{\"type\":\"button\",\"label\":\"界面设计\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"url\",\"args\":{\"url\":\"/amis-editor/index.html?id=${id}\"}}]}},\"id\":\"u:c407a6abf56d\",\"level\":\"primary\"},{\"type\":\"button\",\"label\":\"删除\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"outputVar\":\"responseResult\",\"actionType\":\"ajax\",\"options\":{},\"api\":{\"url\":\"/admin/common/jqp_page/delete/${id}\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"expression\":\"\"},{\"componentId\":\"u:4fa5182eac7c\",\"groupType\":\"component\",\"actionType\":\"reload\"}]}},\"id\":\"u:4845d6d14a20\",\"level\":\"danger\",\"confirmText\":\"确认删除页面${name}吗?\"},{\"type\":\"button\",\"label\":\"预览\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"url\",\"args\":{\"url\":\"/html/${code}\"}}]}},\"id\":\"u:53881815a09e\",\"level\":\"success\"}],\"id\":\"u:14941d931c0e\"}],\"columnsTogglable\":\"auto\"}],\"id\":\"u:5cc22761f555\",\"definitions\":{},\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"title\":\"\",\"regions\":[\"body\"]}'),('1793882432174809088', 'magic-api', 'magic-api', '{\"type\":\"iframe\",\"id\":\"u:2256bde90622\",\"src\":\"/magic/web/index.html\",\"wrapperCustomStyle\":{},\"height\":\"99%\"}'),('1793888689971519488', 'menu', '菜单配置', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpMenu/query\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"bulkActions\":[],\"itemActions\":[],\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"id\":\"u:0b02979e62a3\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_menu/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"select\",\"id\":\"u:ea72ce4b38ed\",\"label\":\"菜单类型\",\"name\":\"menu_type\",\"multiple\":false,\"source\":{\"url\":\"/admin/jqpDic/options/menu_type\",\"method\":\"get\"},\"required\":true},{\"type\":\"tree-select\",\"name\":\"parent_id\",\"label\":\"父菜单\",\"id\":\"u:cd0d7b6207fa\",\"multiple\":false,\"enableNodePath\":false,\"hideRoot\":true,\"showIcon\":true,\"initiallyOpen\":true,\"clearable\":false,\"source\":{\"url\":\"/admin/jqpMenu/query\",\"method\":\"post\"},\"labelField\":\"name\",\"valueField\":\"id\"},{\"type\":\"input-text\",\"name\":\"name\",\"label\":\"菜单名称\",\"id\":\"u:5716441ba944\",\"required\":true},{\"type\":\"input-text\",\"label\":\"链接\",\"name\":\"url\",\"id\":\"u:dbbb880f90f6\"},{\"type\":\"select\",\"label\":\"是否按钮\",\"name\":\"is_button\",\"id\":\"u:6bf613a3756c\",\"multiple\":false,\"source\":{\"url\":\"/admin/jqpDic/options/whether\",\"method\":\"get\"},\"required\":true},{\"type\":\"input-text\",\"label\":\"权限编码\",\"name\":\"auth_code\",\"id\":\"u:162806ce5634\"},{\"type\":\"input-number\",\"label\":\"序号\",\"name\":\"seq\",\"id\":\"u:06c6b49c845a\",\"keyboard\":true,\"step\":1,\"required\":true},{\"type\":\"textarea\",\"label\":\"接口列表\",\"name\":\"urls\",\"id\":\"u:3ad15cd81e92\",\"minRows\":5,\"maxRows\":20}],\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:c5ef412e9ab5\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:ea47c2a71ef7\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:2cdc91ffec14\"}]},\"id\":\"u:b14e279db179\"},{\"type\":\"bulk-actions\"}],\"id\":\"u:a891ed608e24\",\"filterSettingSource\":[\"id\",\"name\",\"url\",\"parent_id\",\"children\"],\"perPageAvailable\":[10],\"messages\":{},\"autoGenerateFilter\":true,\"columns\":[{\"label\":\"名称\",\"type\":\"text\",\"name\":\"name\",\"id\":\"u:bb863658f9d4\",\"searchable\":true},{\"label\":\"链接\",\"type\":\"text\",\"name\":\"url\",\"id\":\"u:a0c5e9ed37b6\",\"searchable\":true},{\"type\":\"mapping\",\"label\":\"菜单类型\",\"name\":\"menu_type\",\"id\":\"u:1b43be6082a6\",\"source\":{\"url\":\"/admin/jqpDic/options/menu_type\",\"method\":\"get\"},\"searchable\":{\"type\":\"select\",\"label\":\"菜单类型\",\"name\":\"menu_type\",\"multiple\":false,\"source\":{\"url\":\"/admin/jqpDic/options/menu_type\",\"method\":\"get\"},\"required\":false,\"clearable\":true}},{\"type\":\"mapping\",\"label\":\"是否按钮\",\"name\":\"is_button\",\"id\":\"u:daaa4e85e748\",\"source\":{\"url\":\"/admin/jqpDic/options/whether\",\"method\":\"get\"},\"searchable\":{\"type\":\"select\",\"label\":\"是否按钮\",\"name\":\"is_button\",\"multiple\":false,\"source\":{\"url\":\"/admin/jqpDic/options/whether\",\"method\":\"get\"},\"required\":false,\"clearable\":true}},{\"type\":\"text\",\"label\":\"序号\",\"name\":\"seq\",\"id\":\"u:b7aadce61447\"},{\"type\":\"text\",\"label\":\"权限编码\",\"name\":\"auth_code\",\"id\":\"u:23fbcb4374c6\"},{\"type\":\"html\",\"label\":\"接口列表\",\"name\":\"urls\",\"id\":\"u:a4e3311793b6\",\"inline\":false,\"tpl\":\"\",\"minRows\":3,\"maxRows\":20},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_menu/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"label\":\"id\",\"name\":\"id\",\"id\":\"u:509e711efbd6\",\"type\":\"input-text\",\"visible\":false},{\"label\":\"菜单类型\",\"name\":\"menu_type\",\"id\":\"u:22b31f061cb9\",\"type\":\"select\",\"multiple\":false,\"source\":{\"url\":\"/admin/jqpDic/options/menu_type\",\"method\":\"get\"},\"required\":true},{\"label\":\"父菜单\",\"name\":\"parent_id\",\"id\":\"u:8a02594cb8dd\",\"searchable\":true,\"type\":\"tree-select\",\"multiple\":false,\"enableNodePath\":false,\"hideRoot\":true,\"showIcon\":true,\"initiallyOpen\":true,\"clearable\":false,\"source\":{\"url\":\"/admin/jqpMenu/query?treeId=${id}\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{},\"data\":{\"name\":\"\"}},\"labelField\":\"name\",\"valueField\":\"id\",\"visible\":true},{\"label\":\"名称\",\"name\":\"name\",\"id\":\"u:5e000863d00c\",\"searchable\":true,\"type\":\"input-text\",\"required\":true},{\"type\":\"input-text\",\"label\":\"链接\",\"name\":\"url\",\"id\":\"u:6332d23dc166\",\"searchable\":true},{\"type\":\"select\",\"label\":\"是否按钮\",\"name\":\"is_button\",\"id\":\"u:aa38ddc7b6d7\",\"multiple\":false,\"source\":{\"url\":\"/admin/jqpDic/options/whether\",\"method\":\"get\"},\"required\":true},{\"type\":\"input-text\",\"label\":\"权限编码\",\"name\":\"auth_code\",\"id\":\"u:7d602ec26613\"},{\"type\":\"input-number\",\"label\":\"序号\",\"name\":\"seq\",\"id\":\"u:6ea15e3da3bd\",\"keyboard\":true,\"step\":1,\"hidden\":false,\"required\":true},{\"type\":\"textarea\",\"label\":\"接口列表\",\"name\":\"urls\",\"id\":\"u:491843bfe87e\",\"minRows\":5,\"maxRows\":20}],\"id\":\"u:31c58669c9a1\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:201cc3c439ac\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:8b6d3014c62d\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:0725cadecfdd\"}]},\"id\":\"u:0984caf56893\"},{\"type\":\"button\",\"label\":\"删除\",\"actionType\":\"ajax\",\"level\":\"danger\",\"className\":\"text-danger\",\"confirmText\":\"确定要删除？\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_menu/delete/${id}\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"editorSetting\":{\"behavior\":\"delete\"},\"id\":\"u:d6e17bc8a061\",\"themeCss\":{\"className\":{\"background:default\":\"var(--colors-error-5)\",\"border:default\":{\"top-border-style\":\"var(--borders-style-1)\",\"left-border-style\":\"var(--borders-style-1)\",\"right-border-style\":\"var(--borders-style-1)\",\"bottom-border-style\":\"var(--borders-style-1)\",\"top-border-color\":\"var(--colors-error-5)\",\"left-border-color\":\"var(--colors-error-5)\",\"right-border-color\":\"var(--colors-error-5)\",\"bottom-border-color\":\"var(--colors-error-5)\"},\"font:default\":{\"color\":\"var(--colors-neutral-text-11)\"}}},\"disabledOn\":\"${children && children.length>0}\"}],\"id\":\"u:1422d57f085d\"}]}],\"title\":\"\",\"id\":\"u:f90aee50c8be\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"]}'),('1793926560816291840', 'login', '登录界面', '{\"id\":\"u:fc52b1413f70\",\"body\":[{\"type\":\"container\",\"isFreeContainer\":true,\"size\":\"xs\",\"body\":[{\"id\":\"u:1671743d79e1\",\"type\":\"form\",\"title\":\"系统登录\",\"mode\":\"horizontal\",\"dsType\":\"api\",\"body\":[{\"type\":\"input-text\",\"label\":\"账号\",\"name\":\"account\",\"id\":\"u:57ef71ee98dd\",\"required\":true},{\"type\":\"input-password\",\"label\":\"密码\",\"name\":\"password\",\"id\":\"u:20c9270b7af4\",\"showCounter\":false,\"required\":true},{\"type\":\"flex\",\"items\":[{\"type\":\"container\",\"body\":[{\"type\":\"input-text\",\"label\":\"验证码\",\"name\":\"img_code\",\"id\":\"u:04b53aaa7d82\",\"required\":true}],\"size\":\"none\",\"style\":{\"position\":\"static\",\"display\":\"block\",\"flex\":\"0 0 150px\",\"flexBasis\":\"250px\",\"overflowX\":\"visible\",\"height\":\"40px\",\"overflowY\":\"visible\"},\"wrapperBody\":false,\"isFixedHeight\":true,\"isFixedWidth\":false,\"id\":\"u:c8fb773af634\"},{\"type\":\"container\",\"body\":[{\"type\":\"image\",\"id\":\"u:b33aa62e52ab\",\"height\":30,\"enlargeAble\":false,\"maxScale\":200,\"minScale\":50,\"style\":{\"display\":\"inline-block\"},\"src\":\"/admin/jqpUser/captcha.png?time=${time}\",\"width\":100,\"imageMode\":\"original\",\"onEvent\":{\"click\":{\"weight\":0,\"actions\":[{\"componentId\":\"u:fc52b1413f70\",\"ignoreError\":false,\"actionType\":\"setValue\",\"args\":{\"value\":{\"time\":\"${TIMESTAMP()}\"}}}]}}}],\"size\":\"none\",\"style\":{\"position\":\"static\",\"display\":\"block\",\"flex\":\"1 1 auto\",\"flexGrow\":1,\"flexBasis\":0},\"wrapperBody\":false,\"isFixedHeight\":false,\"isFixedWidth\":false,\"id\":\"u:e16d7c4311f4\"}],\"style\":{\"position\":\"relative\",\"rowGap\":\"10px\",\"columnGap\":\"10px\",\"flexWrap\":\"nowrap\",\"inset\":\"auto\",\"alignItems\":\"flex-end\",\"height\":\"40px\",\"overflowY\":\"visible\"},\"id\":\"u:ed89f54846c0\",\"isFixedHeight\":true,\"isFixedWidth\":false}],\"actions\":[{\"type\":\"button\",\"label\":\"登录\",\"onEvent\":{\"click\":{\"actions\":[{\"componentId\":\"u:1671743d79e1\",\"ignoreError\":false,\"actionType\":\"submit\",\"outputVar\":\"submitResult\"},{\"componentId\":\"u:fc52b1413f70\",\"ignoreError\":false,\"actionType\":\"setValue\",\"args\":{\"value\":{\"time\":\"${TIMESTAMP()}\"}}}]}},\"id\":\"u:aba81434b60f\",\"level\":\"primary\",\"block\":true}],\"resetAfterSubmit\":true,\"style\":{\"position\":\"absolute\",\"inset\":\"10px auto auto 10px\",\"width\":\"calc(100% - 10px )\"},\"api\":{\"url\":\"/admin/jqpUser/login\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"onEvent\":{\"submitSucc\":{\"weight\":0,\"actions\":[{\"ignoreError\":false,\"actionType\":\"url\",\"args\":{\"url\":\"/\",\"blank\":false}}]}},\"feat\":\"Insert\"}],\"wrapperBody\":false,\"style\":{\"position\":\"relative\",\"inset\":\"auto\",\"overflowX\":\"visible\",\"height\":\"300px\",\"overflowY\":\"visible\",\"width\":\"400px\"},\"id\":\"u:978cda2c006e\",\"isFixedHeight\":true,\"isFixedWidth\":true,\"themeCss\":{\"baseControlClassName\":{\"padding-and-margin:default\":{\"marginTop\":\"200px\",\"marginLeft\":\"var(--sizes-size-1)\",\"marginRight\":\"var(--sizes-size-1)\"}}}}],\"type\":\"page\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"data\":{\"time\":\"1\"}}'),('1794908717877428224', 'navigation', '导航', '{\"type\":\"page\",\"body\":[{\"type\":\"tabs\",\"mountOnEnter\":true,\"id\":\"mainTabs\",\"tabs\":[{\"title\":\"首页\",\"url\":\"/page/index\",\"className\":\"h-full\",\"tab\":{\"type\":\"service\",\"className\":\"h-full\",\"schemaApi\":\"/page/index\",\"id\":\"u:514e87b7fd63\",\"dsType\":\"api\"},\"id\":\"u:61e51a0d1bc5\"}],\"className\":\"\",\"contentClassName\":\"h-full\",\"linksClassName\":\"\",\"style\":{\"height\":\"calc(100% - 22px)\",\"padding\":\"0px\",\"margin\":\"0px\"},\"toolbar\":[{\"type\":\"tooltip-wrapper\",\"tooltip\":\"提示文字\",\"body\":[{\"type\":\"tpl\",\"wrapperComponent\":\"\",\"tpl\":\"欢迎<span style=\'color:red;margin-left:5px;margin-right:5px;\'>${user.name}</span>\",\"id\":\"u:8513b26e95fc\",\"visible\":true,\"inline\":true},{\"type\":\"button\",\"label\":\"退出系统\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"outputVar\":\"responseResult\",\"actionType\":\"ajax\",\"options\":{},\"api\":{\"url\":\"/admin/jqpUser/logout\",\"method\":\"get\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}}},{\"ignoreError\":false,\"actionType\":\"url\",\"args\":{\"blank\":false,\"url\":\"/html/login\"}}]}},\"id\":\"u:d765b7364af2\",\"level\":\"danger\"}],\"enterable\":true,\"showArrow\":true,\"offset\":[0,0],\"id\":\"u:5539b4e6edb1\"}]}],\"name\":\"mainPage\",\"data\":{\"main_url\":\"/test\"},\"aside\":[{\"type\":\"nav\",\"id\":\"u:e0a30f950ed5\",\"searchable\":true,\"stacked\":true,\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"script\":\"/* 自定义JS使用说明：\\n  * 1.动作执行函数doAction，可以执行所有类型的动作\\n  * 2.通过上下文对象context可以获取当前组件实例，例如context.props可以获取该组件相关属性\\n  * 3.事件对象event，在doAction之后执行event.stopPropagation();可以阻止后续动作执行\\n*/\\n\\nconsole.info(\\\"context:\\\",context);\\n\\nlet tabs = context.context.getComponentById(\\\"mainTabs\\\");\\nconsole.info(\\\"tabs:\\\", tabs);\\nconsole.info(\\\"event:\\\", event);\\nlet item = event.data.item;\\n\\n// let items = tabs.props.tabs;\\nlet items = tabs.state.localTabs;\\n\\nfor (let i = 0; i < items.length;i++) {\\n  if (items[i].url == item.url) {\\n    tabs.switchTo(i);\\n    return;\\n  }\\n}\\n\\nitems.push({\\n  \\\"title\\\": item.label,\\n  \\\"url\\\": item.url,\\n  \\\"className\\\": \\\"h-full\\\",\\n  \\\"style\\\": {\\n    \\\"padding\\\": \\\"0px\\\"\\n  },\\n  \\\"closable\\\":true,\\n  \\\"tab\\\": {\\n    \\\"type\\\": \'service\',\\n    \\\"className\\\": \'h-full\',\\n    \\\"schemaApi\\\": item.url,\\n    \\\"style\\\": {\\n      \\\"padding\\\":\\\"0px\\\"\\n    }\\n  }\\n});\\n// tabs.props.activeKey = items.length - 1;\\ntabs.switchTo(tabs.props.tabs.length - 1);\\n\",\"actionType\":\"custom\",\"args\":{}}]}},\"className\":\"h-full\",\"title\":\"导航\",\"source\":{\"url\":\"/admin/jqpMenu/userMenu\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{},\"data\":{\"menuType\":\"pc\"}},\"searchConfig\":{\"matchFunc\":\"return link.label.indexOf(keyword)>=0\",\"enhance\":true,\"placeholder\":\"搜索菜单\",\"searchImediately\":true},\"defaultOpenLevel\":9}],\"regions\":[\"body\",\"aside\"],\"id\":\"u:a6a41b01cb33\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"themeCss\":{\"baseControlClassName\":{\"padding-and-margin:default\":{\"paddingTop\":\"var(--sizes-size-0)\",\"paddingRight\":\"var(--sizes-size-0)\",\"paddingBottom\":\"var(--sizes-size-0)\",\"paddingLeft\":\"var(--sizes-size-0)\",\"marginTop\":\"var(--sizes-size-0)\",\"marginRight\":\"var(--sizes-size-0)\",\"marginBottom\":\"var(--sizes-size-0)\",\"marginLeft\":\"var(--sizes-size-0)\",\"padding\":\"0px\",\"margin\":\"0px\"}}},\"style\":{},\"initApi\":{\"url\":\"/admin/jqpUser/getUserSession\",\"method\":\"get\",\"data\":{\"main_url\":\"/test\"},\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}}}'),('1794981582257651712', 'index', '首页', '{\"type\":\"page\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"首页 ......<br/>\\n当前登录用户:${user.name}\\n当前角色:${user.roles.join(\',\')}\",\"wrapperComponent\":\"\",\"inline\":false,\"id\":\"u:de24ddda397a\"},{\"type\":\"tpl\",\"tpl\":\"首页<br/>\\n 当前登录用户:${user.name}<br/>\\n 当前角色:${}\",\"inline\":true,\"wrapperComponent\":\"\",\"id\":\"u:4b6489cb9ae8\"},{\"type\":\"tpl\",\"tpl\":\"首页<br/>\\n 当前登录用户:${user.name}<br/>\\n 当前角色:${roles}<br/>\\n 当前按钮:${buttons}\",\"inline\":true,\"wrapperComponent\":\"\",\"id\":\"u:19fc510465e6\"}],\"title\":\"\",\"id\":\"u:7c7f9f945473\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"]}'),('1795358443265515520', 'dic', '数据字典', '{\"type\":\"page\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"\",\"wrapperComponent\":\"\",\"inline\":false,\"id\":\"u:d1d792a319da\"},{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpDic/query\"},\"bulkActions\":[],\"itemActions\":[],\"id\":\"u:24ed63368015\",\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_dic/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"name\":\"code\",\"label\":\"编号\",\"id\":\"u:0179ac29158a\",\"required\":true},{\"type\":\"input-text\",\"name\":\"name\",\"label\":\"名称\",\"id\":\"u:5ceafbc1ca5e\",\"required\":true}],\"id\":\"u:32424920a1bf\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:ce7a38df9de2\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:134fe8b7c268\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:83a608f17686\"}],\"actionType\":\"dialog\",\"$$ref\":\"modal-ref-1\"},\"id\":\"u:3549cc34b23a\",\"visibleOn\":\"${ARRAYSOME(buttons,item=>item==\'jqpDicEdit\')}\"},{\"type\":\"bulk-actions\"}],\"perPageAvailable\":[10],\"messages\":{},\"mode\":\"table\",\"placeholder\":\"暂无数据\",\"columns\":[{\"name\":\"code\",\"label\":\"编号\",\"type\":\"text\",\"id\":\"u:be483746f0d4\"},{\"type\":\"text\",\"label\":\"名称\",\"name\":\"name\",\"id\":\"u:3101dba2fe1d\"},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"type\":\"dialog\",\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"body\":[{\"type\":\"input-text\",\"label\":\"主键\",\"name\":\"id\",\"id\":\"u:80a29ce58d2e\",\"hidden\":false},{\"name\":\"code\",\"label\":\"编号\",\"id\":\"u:7eee5dd5e37f\",\"searchable\":true,\"type\":\"input-text\",\"required\":true},{\"label\":\"名称\",\"name\":\"name\",\"id\":\"u:c5b430b2ec0b\",\"searchable\":true,\"type\":\"input-text\",\"hidden\":false,\"required\":true}],\"id\":\"u:2140cea054d8\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Edit\",\"dsType\":\"api\",\"initApi\":\"\",\"api\":{\"url\":\"/admin/common/jqp_dic/save\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}}}],\"id\":\"u:c0401682849a\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:6bc285759018\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:dce79ce14968\"}],\"actionType\":\"dialog\",\"$$ref\":\"modal-ref-2\"},\"id\":\"u:0948f98f27bd\",\"visibleOn\":\"${ARRAYSOME(buttons,item=>item==\'jqpDicEdit\')}\"},{\"type\":\"button\",\"label\":\"详情\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"dialog\",\"dialog\":{\"type\":\"dialog\",\"title\":\"详情\",\"body\":[{\"type\":\"property\",\"title\":\"\",\"items\":[{\"label\":\"字典编号\",\"content\":\"${dic_code}\",\"span\":1},{\"label\":\"字典名称\",\"content\":\"${dic_name}\",\"span\":1}],\"id\":\"u:2f57d6c372ff\",\"column\":2,\"mode\":\"simple\"},{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"get\",\"url\":\"/admin/jqpDic/items/${dic_id}\"},\"bulkActions\":[],\"itemActions\":[],\"id\":\"u:4b171e0ed8be\",\"perPageAvailable\":[10],\"messages\":{},\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"type\":\"dialog\",\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_dic_item/save\"},\"body\":[{\"type\":\"input-text\",\"name\":\"name\",\"label\":\"名称\",\"id\":\"u:9c6719104f8a\",\"required\":true},{\"type\":\"input-text\",\"name\":\"value\",\"label\":\"值\",\"id\":\"u:52fb1214f778\",\"required\":true},{\"type\":\"input-text\",\"label\":\"字典id\",\"name\":\"dic_id\",\"id\":\"u:de50051bef31\",\"hidden\":true}],\"id\":\"u:5e957ea90101\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\"}],\"id\":\"u:51fdcfdbf6db\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:06351604d524\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:7685b9ab40aa\"}]},\"id\":\"u:1333c7cf8d4f\",\"visibleOn\":\"${ARRAYSOME(buttons,item=>item==\'jqpDicEdit\')}\"},{\"type\":\"bulk-actions\"}],\"columns\":[{\"name\":\"name\",\"label\":\"名称\",\"type\":\"text\",\"id\":\"u:3ef4772bc881\"},{\"name\":\"value\",\"label\":\"值\",\"type\":\"text\",\"id\":\"u:7a7fde6e8394\"},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"api\":\"/admin/common/jqp_dic_item/save\",\"body\":[{\"type\":\"input-text\",\"label\":\"主键\",\"name\":\"id\",\"id\":\"u:f3849ac3cd2c\",\"hidden\":true},{\"name\":\"name\",\"label\":\"名称\",\"id\":\"u:6af974f162f4\",\"type\":\"input-text\",\"required\":true,\"value\":\"${null}\"},{\"name\":\"value\",\"label\":\"值\",\"id\":\"u:aeea7c5a135b\",\"type\":\"input-text\",\"required\":true}],\"id\":\"u:17f02145e264\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\"}],\"type\":\"dialog\",\"id\":\"u:e0f8a311e2ed\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:04ef647ea236\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:24c696621774\"}]},\"id\":\"u:403364fe0727\",\"visibleOn\":\"${ARRAYSOME(buttons,item=>item==\'jqpDicEdit\')}\"},{\"type\":\"button\",\"label\":\"删除\",\"actionType\":\"ajax\",\"level\":\"danger\",\"className\":\"danger\",\"confirmText\":\"确定要删除？\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_dic_items/${id}\"},\"id\":\"u:f282786b25fc\",\"visibleOn\":\"${ARRAYSOME(buttons,item=>item==\'jqpDicDelete\')}\"}],\"id\":\"u:c0d0da72fcb8\"}]}],\"id\":\"u:0222cf1a8fd9\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:e92793eb54a7\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:6ec1ce18f2d6\"}],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"size\":\"md\",\"actionType\":\"dialog\",\"data\":{\"id\":\"\",\"dic_id\":\"${id}\",\"dic_name\":\"${name}\",\"dic_code\":\"${code}\",\"buttons\":\"${buttons}\"},\"dataMap\":{\"id\":\"\",\"dic_id\":\"${id}\",\"dic_name\":\"${name}\",\"dic_code\":\"${code}\",\"buttons\":\"${buttons}\"},\"withDefaultData\":false,\"dataMapSwitch\":true}}]}},\"id\":\"u:30a756ab31b3\",\"level\":\"info\"},{\"type\":\"button\",\"label\":\"删除\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"ajax\",\"outputVar\":\"responseResult\",\"options\":{},\"api\":{\"url\":\"/admin/jqpDic/delete/${id}\",\"method\":\"post\"}},{\"componentId\":\"u:24ed63368015\",\"groupType\":\"component\",\"actionType\":\"reload\"}]}},\"id\":\"u:c212dcbd1628\",\"level\":\"danger\",\"confirmText\":\"确认删除吗\",\"visibleOn\":\"${ARRAYSOME(buttons,item=>item==\'jqpDicDelete\')}\"}],\"id\":\"u:3cd78586ef07\"}],\"autoGenerateFilter\":true,\"filter\":{\"title\":\"\",\"body\":[{\"type\":\"input-text\",\"name\":\"code\",\"label\":\"编号\",\"id\":\"u:8a22c6d0ac48\"},{\"type\":\"input-text\",\"label\":\"名称\",\"name\":\"name\",\"id\":\"u:05adb218b909\"},{\"type\":\"submit\",\"label\":\"搜索\",\"primary\":true,\"id\":\"u:a6c9868fed6c\",\"onEvent\":{\"click\":{\"weight\":0,\"actions\":[{\"componentId\":\"u:13346c141201\",\"ignoreError\":false,\"actionType\":\"setValue\",\"args\":{\"value\":{\"dic_id\":\"\"}}}]}}}],\"id\":\"u:1211d4af85f0\",\"feat\":\"Insert\",\"wrapWithPanel\":false}}],\"title\":\"\",\"id\":\"u:6a8609f8411d\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"],\"definitions\":{}}'),('1795989002497028096', 'test', '测试', '{\"type\":\"page\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"hello\",\"wrapperComponent\":\"\",\"inline\":false,\"id\":\"u:492db6f0627d\"},{\"type\":\"select\",\"label\":\"选项\",\"name\":\"select\",\"id\":\"u:42df762083ac\",\"multiple\":false,\"source\":{\"url\":\"/admin/jqpDic/options/whether\",\"method\":\"get\"}},{\"id\":\"u:a09ac2b88cc8\",\"type\":\"form\",\"title\":\"表单\",\"mode\":\"horizontal\",\"dsType\":\"api\",\"feat\":\"Insert\",\"body\":[{\"type\":\"input-excel\",\"label\":\"Excel\",\"name\":\"excel\",\"id\":\"u:bb34fb9cd4ad\"},{\"type\":\"input-file\",\"label\":\"文件上传\",\"autoUpload\":true,\"proxy\":true,\"uploadType\":\"fileReceptor\",\"name\":\"file\",\"id\":\"u:24165193551c\",\"btnLabel\":\"文件上传\",\"multiple\":true,\"useChunk\":false,\"accept\":\"\",\"drag\":false,\"receiver\":{\"url\":\"/admin/file/upload\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"asBase64\":false,\"asBlob\":false,\"bos\":\"default\"},{\"type\":\"picker\",\"label\":\"列表选取\",\"name\":\"page_id\",\"overflowConfig\":{\"maxTagCount\":-1},\"modalClassName\":\"app-popover :AMISCSSWrapper\",\"id\":\"u:2cc0a0e80af0\",\"pickerSchema\":{\"mode\":\"table\",\"labelField\":\"name\",\"valueField\":\"id\",\"id\":\"u:c0db8ffd6472\",\"bulkActions\":[],\"perPageAvailable\":[10],\"columns\":[{\"type\":\"text\",\"name\":\"code\",\"label\":\"编号\",\"id\":\"u:5c8874a499c5\",\"searchable\":true},{\"type\":\"text\",\"name\":\"name\",\"label\":\"名称\",\"id\":\"u:b8715ef20249\",\"searchable\":true},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[],\"id\":\"u:2ea2b4330b3c\"}],\"primaryField\":\"id\",\"keepItemSelectionOnPageChange\":false,\"autoGenerateFilter\":true},\"source\":{\"url\":\"/admin/jqpPage/query\",\"method\":\"post\"},\"multiple\":true,\"labelField\":\"name\",\"valueField\":\"id\",\"size\":\"lg\"},{\"type\":\"input-rich-text\",\"label\":\"富文本\",\"name\":\"remark\",\"vendor\":\"tinymce\",\"id\":\"u:15a2a5fd2543\",\"options\":{\"plugins\":\"advlist,autolink,link,image,lists,charmap,preview,anchor,pagebreak,searchreplace,wordcount,visualblocks,visualchars,code,fullscreen,insertdatetime,media,nonbreaking,table,emoticons,template,help\",\"toolbar\":\"undo redo bold italic backcolor alignleft formatselect aligncenter alignright alignjustify bullist numlist outdent indent removeformat help charmap anchor pagebreak searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking table tableprops tabledelete tablecellprops tablemergecells tablesplitcells tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops tableinsertcolbefore tableinsertcolafter tabledeletecol tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter tablecutcol tablecopycol tablepastecolbefore tablepastecolafter tableinsertdialog tablecellvalign tablecellborderwidth tablecellborderstyle tablecellbackgroundcolor tablecellbordercolor tablecaption tablerowheader tablecolheader emoticons template link openlink unlink image preview alignnone underline strikethrough subscript superscript h1 h2 h3 h4 h5 h6 cut copy paste selectall newdocument remove print hr blockquote forecolor visualaid lineheight pastetext\",\"menubar\":true},\"receiver\":{\"url\":\"/admin/file/upload\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}}}],\"api\":{\"url\":\"/admin/test\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"actions\":[{\"type\":\"button\",\"label\":\"提交\",\"onEvent\":{\"click\":{\"actions\":[{\"actionType\":\"submit\",\"componentId\":\"u:a09ac2b88cc8\"}]}},\"level\":\"primary\",\"id\":\"u:8291f7d988c8\"}],\"resetAfterSubmit\":true}],\"title\":\"示例界面\",\"id\":\"u:d9f110397c19\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true}}'),('1795997501436194816', 'user', '用户', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpUser/query\"},\"bulkActions\":[],\"itemActions\":[],\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"type\":\"dialog\",\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpUser/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"name\":\"name\",\"label\":\"姓名\",\"id\":\"u:71fe33c04b2a\",\"required\":true},{\"type\":\"input-text\",\"name\":\"account\",\"label\":\"账号\",\"id\":\"u:fe7b6dad35b0\",\"required\":true},{\"type\":\"input-text\",\"label\":\"密码\",\"name\":\"password\",\"id\":\"u:efb0a4495492\",\"required\":true},{\"type\":\"select\",\"label\":\"角色\",\"name\":\"role_ids\",\"id\":\"u:cb2b91220fd0\",\"multiple\":true,\"searchable\":true,\"source\":{\"url\":\"/admin/jqpRole/query\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"labelField\":\"name\",\"valueField\":\"id\",\"checkAll\":false,\"clearable\":true}],\"id\":\"u:1a307cd29e98\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"id\":\"u:e4a4a4abc179\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:285b669aa30f\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:762d5728df38\"}]},\"id\":\"u:07f24a170674\"},\"bulkActions\"],\"columns\":[{\"name\":\"name\",\"label\":\"姓名\",\"type\":\"text\",\"id\":\"u:3053b32a333a\"},{\"type\":\"text\",\"label\":\"账号\",\"name\":\"account\",\"id\":\"u:10a0f4cf634c\"},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpUser/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"label\":\"主键\",\"name\":\"id\",\"id\":\"u:a4ba48a75db6\",\"visible\":false},{\"name\":\"name\",\"label\":\"姓名\",\"type\":\"input-text\",\"id\":\"u:508c56e79a8f\",\"required\":true},{\"label\":\"账号\",\"name\":\"account\",\"type\":\"input-text\",\"id\":\"u:9c661f974668\",\"required\":true},{\"type\":\"input-password\",\"label\":\"密码\",\"name\":\"password\",\"id\":\"u:822a7d2cbe06\",\"showCounter\":false,\"validations\":{},\"validationErrors\":{},\"placeholder\":\"修改时填写,不修改可不填\"},{\"type\":\"select\",\"label\":\"角色\",\"name\":\"role_ids\",\"id\":\"u:f0ec614867f9\",\"multiple\":true,\"clearable\":true,\"searchable\":true,\"checkAll\":false,\"source\":{\"url\":\"/admin/jqpRole/query\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"labelField\":\"name\",\"valueField\":\"id\"}],\"id\":\"u:56df4303f01d\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:84a3355118c0\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:b83d251eb990\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:b225360b8f47\"}]},\"id\":\"u:068cc8d1ca2c\"},{\"type\":\"button\",\"label\":\"删除\",\"actionType\":\"ajax\",\"level\":\"danger\",\"className\":\"danger\",\"confirmText\":\"确定要删除？\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_user/delete/${id}\"},\"editorSetting\":{\"behavior\":\"delete\"},\"id\":\"u:fae3ece92daf\"}],\"id\":\"u:b9ee2231a201\"}],\"id\":\"u:0f5b7af4d5f4\"}],\"title\":\"\",\"id\":\"u:d88804c9c796\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"]}'),('1796020391258877952', 'role', '角色', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpRole/query\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"bulkActions\":[],\"itemActions\":[],\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_role/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"name\":\"name\",\"label\":\"名称\",\"id\":\"u:a626c30ed636\",\"required\":true},{\"type\":\"input-text\",\"name\":\"code\",\"label\":\"编号\",\"id\":\"u:c5b96e962840\",\"required\":true},{\"type\":\"tree-select\",\"label\":\"菜单\",\"name\":\"menu_ids\",\"id\":\"u:b23a5197f86c\",\"multiple\":true,\"enableNodePath\":false,\"hideRoot\":true,\"showIcon\":true,\"initiallyOpen\":true,\"clearable\":true,\"autoCheckChildren\":true,\"withChildren\":true,\"source\":{\"url\":\"/admin/jqpMenu/query\",\"method\":\"post\"},\"labelField\":\"name\",\"valueField\":\"id\",\"searchable\":true}],\"id\":\"u:cf1606ec0b1b\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:4c36341f8787\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:065a717543ab\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:b7157839141c\"}],\"actionType\":\"dialog\"},\"id\":\"u:a7b93c2690a6\"},\"bulkActions\"],\"columns\":[{\"name\":\"name\",\"label\":\"名称\",\"type\":\"text\",\"id\":\"u:e71e15c23760\"},{\"type\":\"text\",\"label\":\"编号\",\"name\":\"code\",\"id\":\"u:d531cfeeefc6\"},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_role/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"name\":\"id\",\"label\":\"主键\",\"type\":\"input-text\",\"id\":\"u:6d8233c1e292\",\"visible\":false},{\"label\":\"名称\",\"name\":\"name\",\"type\":\"input-text\",\"id\":\"u:4ad370f0806a\",\"required\":true},{\"label\":\"编号\",\"name\":\"code\",\"type\":\"input-text\",\"id\":\"u:b88d34aa32d5\",\"hidden\":false,\"required\":true},{\"type\":\"tree-select\",\"label\":\"菜单\",\"name\":\"menu_ids\",\"id\":\"u:029a094e3a2b\",\"multiple\":true,\"enableNodePath\":false,\"hideRoot\":true,\"showIcon\":false,\"initiallyOpen\":true,\"source\":{\"url\":\"/admin/jqpMenu/query\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{},\"dataType\":\"json\",\"silent\":false,\"replaceData\":false,\"data\":{\"name\":\"\"}},\"labelField\":\"name\",\"valueField\":\"id\",\"autoCheckChildren\":true,\"withChildren\":false,\"clearable\":true,\"searchable\":true,\"cascade\":false,\"onlyLeaf\":true}],\"id\":\"u:c251db977349\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:9108638aedcc\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:57ebd5715c04\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:f764b6eb08a1\"}],\"actionType\":\"dialog\"},\"id\":\"u:db27c9c9f727\"},{\"type\":\"button\",\"label\":\"删除\",\"actionType\":\"ajax\",\"level\":\"danger\",\"className\":\"danger\",\"confirmText\":\"确定要删除？\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_role/delete/${id}\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"editorSetting\":{\"behavior\":\"delete\"},\"id\":\"u:d135baa6020b\"}],\"id\":\"u:2b46a2cf4a34\"}],\"id\":\"u:0f2489497751\"}],\"title\":\"\",\"id\":\"u:912223c6afc8\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"],\"definitions\":{}}'),('1801077185609986048', 'mobileNavigation', '移动端导航', '{\"type\":\"page\",\"body\":[{\"type\":\"service\",\"body\":[],\"id\":\"u:b4d2cb2c9651\",\"dsType\":\"api\",\"style\":{\"height\":\"calc(100% - 50px )\",\"overflow\":\"auto\"},\"schemaApi\":\"${indexUrl}\",\"initFetchSchema\":false,\"className\":\"\"},{\"type\":\"nav\",\"stacked\":false,\"popupClassName\":\"app-popover :AMISCSSWrapper\",\"id\":\"u:1268a1665523\",\"source\":{\"url\":\"/admin/jqpMenu/userMenu\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{},\"data\":{\"menuType\":\"mobile\"}},\"onEvent\":{\"click\":{\"weight\":0,\"actions\":[{\"componentId\":\"u:73875113583b\",\"ignoreError\":false,\"actionType\":\"setValue\",\"args\":{\"value\":{\"indexUrl\":\"${event.data.item.url}\"}}}]}},\"style\":{\"borderRightStyle\":\"none\",\"color\":\"#000000\",\"fontFamily\":\"\",\"fontSize\":16,\"letterSpacing\":\"5px\",\"boxShadow\":\"23px\",\"borderTopLeftRadius\":0,\"borderTopRightRadius\":0,\"borderBottomLeftRadius\":0,\"borderBottomRightRadius\":0,\"backgroundColor\":\"rgba(248, 248, 248, 1)\",\"textAlign\":\"justify\",\"cursor\":\"default\",\"borderTopStyle\":\"none\",\"borderTopWidth\":\"\",\"borderTopColor\":\"\",\"borderLeftStyle\":\"none\",\"borderBottomStyle\":\"none\",\"borderLeftWidth\":\"\",\"borderRightWidth\":\"\",\"borderBottomWidth\":\"\",\"borderLeftColor\":\"\",\"borderRightColor\":\"\",\"borderBottomColor\":\"\"}}],\"title\":\"示例界面\",\"id\":\"u:73875113583b\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"],\"data\":{\"indexUrl\":\"/page/mobileIndex\"},\"style\":{\"height\":\"100%\"},\"bodyClassName\":\"h-full\",\"themeCss\":{\"bodyControlClassName\":{\"padding-and-margin:default\":{\"paddingTop\":\"0px\",\"paddingRight\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\",\"marginTop\":\"var(--sizes-size-0)\",\"marginRight\":\"var(--sizes-size-0)\",\"marginBottom\":\"var(--sizes-size-0)\",\"marginLeft\":\"var(--sizes-size-0)\"}},\"baseControlClassName\":{\"padding-and-margin:default\":{\"paddingTop\":\"0px\",\"paddingRight\":\"0px\",\"paddingBottom\":\"0px\",\"paddingLeft\":\"0px\"}}}}'),('1801421382393257984', 'mobileIndex', '移动端首页', '{\"type\":\"page\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"移动端首页11\",\"wrapperComponent\":\"\",\"inline\":false,\"id\":\"u:c64ca0bd5d0e\"}],\"title\":\"移动端首页11\",\"id\":\"u:6cd5c48290fa\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"]}'),('1801421468472958976', 'mobileTest1', '移动端测试1', '{\"type\":\"page\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"hello111\",\"wrapperComponent\":\"\",\"inline\":false,\"id\":\"u:08dfb3f5fa60\"}],\"title\":\"测试\",\"id\":\"u:a3569e3d6413\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"wrapperCustomStyle\":{\":root\":{\"height\":\"100%\",\".cxd-Page-body\":{\"height\":\"100%\",\"padding\":\"0px\"}}}}'),('1801421527801389056', 'mobileTest2', '移动端测试2', '{\"type\":\"page\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"<table style=\\\"border-collapse: collapse; width: 100%;\\\" border=\\\"1\\\"><colgroup><col style=\\\"width: 50.0263%;\\\"><col style=\\\"width: 49.9737%;\\\"></colgroup>\\n<tbody>\\n<tr>\\n<td>\\n<p>gf</p>\\n<p>fg</p>\\n<p>sdfg</p>\\n<p>d</p>\\n<p>2</p>\\n</td>\\n<td>3</td>\\n</tr>\\n<tr>\\n<td>23</td>\\n<td>3</td>\\n</tr>\\n</tbody>\\n</table>\\n<p>&nbsp;</p>\\n<p>gdsfg</p>\\n<p>dfg</p>\\n<p>s</p>\\n<p>dfgdfg</p>\\n<p>sdfg</p>\\n<p>&nbsp;</p>\\n<p>fg</p>\\n<p>s</p>\\n<p>gddd</p>\\n<p>&nbsp;</p>\\n<p>ggg</p>\\n<p>&nbsp;</p>\\n<p>&nbsp;</p>\\n<p>hhh</p>\\n<p>gd</p>\\n<p>&nbsp;</p>\\n<p>tttt2</p>\\n<p>&nbsp;</p>\",\"inline\":false,\"id\":\"u:bd3d17cd0dc8\"}],\"title\":\"示例界面\",\"id\":\"u:849b30c44a7d\"}'),('1801441235225214976', 'mobileUser', '用户', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpUser/query\"},\"bulkActions\":[],\"itemActions\":[],\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"type\":\"dialog\",\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpUser/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"name\":\"name\",\"label\":\"姓名\",\"id\":\"u:71fe33c04b2a\",\"required\":true},{\"type\":\"input-text\",\"name\":\"account\",\"label\":\"账号\",\"id\":\"u:fe7b6dad35b0\",\"required\":true},{\"type\":\"input-text\",\"label\":\"密码\",\"name\":\"password\",\"id\":\"u:efb0a4495492\",\"required\":true},{\"type\":\"select\",\"label\":\"角色\",\"name\":\"role_ids\",\"id\":\"u:cb2b91220fd0\",\"multiple\":true,\"searchable\":true,\"source\":{\"url\":\"/admin/jqpRole/query\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"labelField\":\"name\",\"valueField\":\"id\",\"checkAll\":false,\"clearable\":true}],\"id\":\"u:1a307cd29e98\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"id\":\"u:e4a4a4abc179\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:285b669aa30f\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:762d5728df38\"}]},\"id\":\"u:07f24a170674\"},\"bulkActions\"],\"id\":\"u:0f5b7af4d5f4\",\"perPageAvailable\":[10],\"messages\":{},\"mode\":\"cards\",\"card\":{\"type\":\"card\",\"header\":{\"title\":\"${name}\",\"subTitle\":\"\"},\"body\":[{\"name\":\"name\",\"label\":\"姓名\",\"type\":\"text\",\"id\":\"u:3053b32a333a\"},{\"type\":\"text\",\"label\":\"账号\",\"name\":\"account\",\"id\":\"u:10a0f4cf634c\"}],\"actions\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpUser/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"label\":\"主键\",\"name\":\"id\",\"id\":\"u:a4ba48a75db6\",\"visible\":false},{\"name\":\"name\",\"label\":\"姓名\",\"type\":\"input-text\",\"id\":\"u:508c56e79a8f\",\"required\":true},{\"label\":\"账号\",\"name\":\"account\",\"type\":\"input-text\",\"id\":\"u:9c661f974668\",\"required\":true},{\"type\":\"input-password\",\"label\":\"密码\",\"name\":\"password\",\"id\":\"u:822a7d2cbe06\",\"showCounter\":false,\"validations\":{},\"validationErrors\":{},\"placeholder\":\"修改时填写,不修改可不填\"},{\"type\":\"select\",\"label\":\"角色\",\"name\":\"role_ids\",\"id\":\"u:f0ec614867f9\",\"multiple\":true,\"clearable\":true,\"searchable\":true,\"checkAll\":false,\"source\":{\"url\":\"/admin/jqpRole/query\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"labelField\":\"name\",\"valueField\":\"id\"}],\"id\":\"u:56df4303f01d\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:84a3355118c0\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:b83d251eb990\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:b225360b8f47\"}]},\"id\":\"u:068cc8d1ca2c\"},{\"type\":\"button\",\"label\":\"删除\",\"actionType\":\"ajax\",\"level\":\"danger\",\"className\":\"danger\",\"confirmText\":\"确定要删除？\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_user/delete/${id}\"},\"editorSetting\":{\"behavior\":\"delete\"},\"id\":\"u:fae3ece92daf\"}],\"id\":\"u:896f61c1f045\"}}],\"title\":\"\",\"id\":\"u:d88804c9c796\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"]}'),('1801448337951883264', 'mobileMy', '我的', '{\"type\":\"page\",\"body\":[{\"type\":\"button\",\"label\":\"退出系统\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"outputVar\":\"responseResult\",\"actionType\":\"ajax\",\"options\":{},\"api\":{\"url\":\"/admin/jqpUser/logout\",\"method\":\"get\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}}},{\"ignoreError\":false,\"actionType\":\"url\",\"args\":{\"blank\":false,\"url\":\"/\"}}]}},\"id\":\"u:c22afca98b80\",\"block\":true,\"level\":\"danger\"}],\"title\":\"我的\",\"id\":\"u:c8fe5835ce79\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true}}'),('1803673553344024576', 'file', '文件管理', '{\"type\":\"page\",\"body\":[{\"type\":\"grid\",\"columns\":[{\"body\":[{\"type\":\"input-tree\",\"label\":\"文件目录\",\"name\":\"tree\",\"id\":\"u:2ee538dd6744\",\"multiple\":false,\"enableNodePath\":false,\"hideRoot\":true,\"showIcon\":true,\"initiallyOpen\":true,\"source\":{\"url\":\"/admin/file/dirs\",\"method\":\"get\"},\"onEvent\":{\"change\":{\"weight\":0,\"actions\":[{\"componentId\":\"u:99cc0d3b705d\",\"groupType\":\"component\",\"actionType\":\"setValue\",\"args\":{\"value\":{\"dir\":\"${event.data.item.value}\"}}}]}},\"creatable\":true,\"rootCreatable\":true,\"createTip\":\"添加子目录\",\"rootCreateTip\":\"添加根目录\",\"addApi\":{\"url\":\"/admin/file/addFolder\",\"method\":\"post\"},\"editable\":true,\"editTip\":\"编辑该节点\",\"editApi\":{\"url\":\"/admin/file/editFolder\",\"method\":\"post\"},\"removable\":true,\"removeTip\":\"移除该节点\",\"deleteApi\":{\"url\":\"/admin/file/deleteFolder\",\"method\":\"post\"}}],\"id\":\"u:4931bf221019\",\"md\":3},{\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"get\",\"url\":\"/admin/file/files?dir=${dir}\"},\"bulkActions\":[],\"itemActions\":[],\"headerToolbar\":[{\"label\":\"上传\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"title\":\"\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/file/files?dir=${dir}\"},\"body\":[{\"type\":\"input-file\",\"label\":\"文件上传\",\"autoUpload\":true,\"proxy\":true,\"uploadType\":\"fileReceptor\",\"name\":\"file\",\"id\":\"u:e992a3a434c5\",\"btnLabel\":\"文件上传\",\"multiple\":true,\"useChunk\":false,\"accept\":\"\",\"drag\":false,\"receiver\":{\"url\":\"/admin/file/upload?dir=${dir}\",\"method\":\"post\"}}],\"id\":\"u:16534e4e0f12\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\"}],\"type\":\"dialog\",\"id\":\"u:5285f55ddd01\",\"actions\":[],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"onEvent\":{\"cancel\":{\"weight\":0,\"actions\":[{\"componentId\":\"u:1a797aa6aa91\",\"groupType\":\"component\",\"actionType\":\"reload\"}]}},\"actionType\":\"dialog\"},\"id\":\"u:997719c00230\",\"disabledOn\":\"${ISEMPTY(dir)}\"},{\"type\":\"bulk-actions\"},{\"type\":\"button\",\"label\":\"刷新\",\"id\":\"u:78ad9d45c8ba\",\"wrapperComponent\":\"\",\"tpl\":\"内容\",\"level\":\"primary\",\"onEvent\":{\"click\":{\"weight\":0,\"actions\":[{\"componentId\":\"u:1a797aa6aa91\",\"groupType\":\"component\",\"actionType\":\"reload\"}]}}}],\"id\":\"u:1a797aa6aa91\",\"perPageAvailable\":[10],\"messages\":{},\"mode\":\"table\",\"columns\":[{\"name\":\"name\",\"label\":\"文件名\",\"type\":\"link\",\"id\":\"u:47a9ae4e2b5c\",\"placeholder\":\"-\",\"href\":\"${downloadPath}\",\"body\":\"${name}\",\"quickEdit\":{\"icon\":\"\",\"mode\":\"popOver\",\"saveImmediately\":{\"api\":\"post:/admin/file/rename?id=${id}\"}},\"copyable\":{\"content\":\"${downloadPath}\"}},{\"type\":\"text\",\"label\":\"更新时间\",\"name\":\"updateTime\",\"id\":\"u:341e80a8ec77\"},{\"type\":\"text\",\"label\":\"文件大小\",\"name\":\"size\",\"id\":\"u:a0e2d111f960\"},{\"type\":\"text\",\"label\":\"文件类型\",\"name\":\"contentType\",\"id\":\"u:019872905059\"},{\"label\":\"操作\",\"type\":\"operation\",\"id\":\"u:e28e80caf00b\",\"buttons\":[{\"type\":\"button\",\"label\":\"删除\",\"actionType\":\"ajax\",\"level\":\"danger\",\"confirmText\":\"确定要删除？\",\"api\":{\"method\":\"post\",\"url\":\"/admin/file/deleteFile\"},\"editorSetting\":{\"behavior\":\"delete\"},\"id\":\"u:ffe774273d35\"},{\"type\":\"button\",\"label\":\"office预览\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"dialog\",\"dialog\":{\"type\":\"dialog\",\"title\":\"预览office\",\"body\":[{\"type\":\"office-viewer\",\"id\":\"u:ff25521bb8d0\",\"src\":\"${downloadPath}\"}],\"id\":\"u:ac7501b0b516\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:f7de2be5f77d\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:5484e213d9e4\"}],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"size\":\"xl\",\"actionType\":\"dialog\"}}]}},\"id\":\"u:04bdaf33c047\",\"hiddenOn\":\"${CONTAINS(contentType,\'office\') == false || length > 1024 * 1024 * 5}\",\"disabled\":false},{\"type\":\"button\",\"label\":\"文本编辑\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"dialog\",\"dialog\":{\"type\":\"dialog\",\"title\":\"文本编辑\",\"body\":[{\"id\":\"u:2de256bd48b4\",\"type\":\"form\",\"title\":\"表单\",\"mode\":\"horizontal\",\"dsType\":\"api\",\"feat\":\"Edit\",\"body\":[{\"name\":\"content\",\"label\":\"内容\",\"type\":\"editor\",\"id\":\"u:fd1a092b29f3\"}],\"actions\":[{\"type\":\"button\",\"label\":\"提交\",\"onEvent\":{\"click\":{\"actions\":[{\"actionType\":\"submit\",\"componentId\":\"u:2de256bd48b4\"}]}},\"level\":\"primary\"}],\"resetAfterSubmit\":true,\"initApi\":\"/admin/file/getContent?id=${id}\",\"api\":{\"url\":\"/admin/file/updateContent?id=${id}\",\"method\":\"post\"}}],\"id\":\"u:df0d5d7d3886\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:4a210b0d56e2\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:407e666396af\"}],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"actionType\":\"dialog\",\"size\":\"xl\"}}]}},\"id\":\"u:822710bc1318\",\"hiddenOn\":\"${CONTAINS(contentType,\'text\') == false || length > 1024 * 1024 * 3}\",\"disabled\":false},{\"type\":\"button\",\"label\":\"富文本编辑器\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"dialog\",\"dialog\":{\"type\":\"dialog\",\"title\":\"富文本编辑器\",\"body\":[{\"id\":\"u:23d9a1009c3a\",\"type\":\"form\",\"title\":\"表单\",\"mode\":\"horizontal\",\"dsType\":\"api\",\"feat\":\"Edit\",\"body\":[{\"type\":\"input-rich-text\",\"label\":\"\",\"name\":\"content\",\"vendor\":\"tinymce\",\"id\":\"u:ccdb704fa37f\",\"options\":{\"plugins\":\"advlist,autolink,link,image,lists,charmap,preview,anchor,pagebreak,searchreplace,wordcount,visualblocks,visualchars,code,fullscreen,insertdatetime,media,nonbreaking,table,emoticons,template,help\",\"toolbar\":\"undo redo formatselect bold italic backcolor alignleft aligncenter alignright alignjustify bullist numlist outdent indent removeformat help\",\"menubar\":true,\"height\":500},\"mode\":\"normal\"}],\"api\":{\"url\":\"/admin/file/updateContent?id=${id}\",\"method\":\"post\"},\"actions\":[{\"type\":\"button\",\"label\":\"提交\",\"onEvent\":{\"click\":{\"actions\":[{\"actionType\":\"submit\",\"componentId\":\"u:23d9a1009c3a\"}]}},\"level\":\"primary\"}],\"resetAfterSubmit\":true,\"initApi\":\"/admin/file/getContent?id=${id}\"}],\"id\":\"u:6cf95b3cf91c\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:47e64172dd95\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:09f39e67f4b4\"}],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"size\":\"xl\",\"actionType\":\"dialog\"}}]}},\"id\":\"u:85056434a1c2\",\"hiddenOn\":\"${!CONTAINS(contentType,\'text/html\')}\",\"disabled\":false}]}]}],\"id\":\"u:ad5c0c228c19\",\"md\":9}],\"id\":\"u:6d994ac14aa1\"}],\"title\":\"示例界面\",\"id\":\"u:99cc0d3b705d\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"],\"data\":{\"dir\":\"\"},\"definitions\":{}}'),('1806574519840030720', 'flow', '流程', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpFlow/query\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"bulkActions\":[],\"itemActions\":[],\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_flow/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"name\":\"code\",\"label\":\"编号\",\"id\":\"u:d1dab05c7354\",\"required\":true},{\"type\":\"input-text\",\"name\":\"name\",\"label\":\"名称\",\"id\":\"u:e59e2135f042\",\"required\":true},{\"type\":\"input-text\",\"name\":\"table_name\",\"label\":\"表\",\"id\":\"u:8688f4409e6c\",\"required\":true},{\"type\":\"input-text\",\"name\":\"status_field\",\"label\":\"状态字段\",\"id\":\"u:ae187ceab0a4\",\"required\":true},{\"type\":\"input-text\",\"name\":\"status_dic\",\"label\":\"状态字典\",\"id\":\"u:21ead7d2cd8d\",\"required\":true},{\"type\":\"input-text\",\"name\":\"page_code\",\"label\":\"页面编号\",\"id\":\"u:664435998ebc\",\"required\":true}],\"id\":\"u:a55398fa88dd\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\",\"title\":\"新增流程\"}],\"type\":\"dialog\",\"id\":\"u:858542656325\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:5c8cd8c6e3b2\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:5ae88484d4a0\"}]},\"id\":\"u:058c581a6e62\"},{\"type\":\"bulk-actions\"}],\"id\":\"u:1858524baba1\",\"autoGenerateFilter\":true,\"columns\":[{\"name\":\"code\",\"label\":\"编号\",\"type\":\"text\",\"id\":\"u:0be8c7f2fe8d\",\"searchable\":true},{\"type\":\"text\",\"label\":\"名称\",\"name\":\"name\",\"id\":\"u:044978bac1b3\",\"searchable\":true},{\"type\":\"text\",\"label\":\"表\",\"name\":\"table_name\",\"id\":\"u:f1a13db50d99\",\"searchable\":true},{\"type\":\"text\",\"label\":\"状态字段\",\"name\":\"status_field\",\"id\":\"u:e2f88fc2e84b\"},{\"type\":\"text\",\"label\":\"状态字典\",\"name\":\"status_dic\",\"id\":\"u:1250234a33a8\"},{\"type\":\"text\",\"label\":\"页面编号\",\"name\":\"page_code\",\"id\":\"u:3e78ce969a52\"},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_flow/save?id=${id}\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"label\":\"id\",\"name\":\"id\",\"id\":\"u:29bbd27455be\",\"visible\":false},{\"name\":\"code\",\"label\":\"编号\",\"type\":\"input-text\",\"id\":\"u:f51ea6e14e01\",\"required\":true},{\"label\":\"名称\",\"name\":\"name\",\"type\":\"input-text\",\"id\":\"u:d7e2da43549a\",\"required\":true},{\"label\":\"表\",\"name\":\"table_name\",\"type\":\"input-text\",\"id\":\"u:6711be550bff\",\"required\":true},{\"label\":\"状态字段\",\"name\":\"status_field\",\"type\":\"input-text\",\"id\":\"u:7f21d36ac5b2\",\"required\":true},{\"label\":\"状态字典\",\"name\":\"status_dic\",\"type\":\"input-text\",\"id\":\"u:83aa1e3e1422\",\"required\":true},{\"label\":\"页面编号\",\"name\":\"page_code\",\"type\":\"input-text\",\"id\":\"u:b87f2276175d\",\"required\":true}],\"id\":\"u:7a55d1a5d7d6\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\",\"title\":\"编辑流程\"}],\"type\":\"dialog\",\"id\":\"u:5196ba9e4c6a\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:f9d4ae9a86cd\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:8af754849933\"}]},\"id\":\"u:48b7c414d780\"},{\"type\":\"button\",\"label\":\"流程设计\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"url\",\"args\":{\"url\":\"/jqp-flow/index.html?flowId=${id}\"}}]}},\"id\":\"u:affb6ea4630a\",\"level\":\"primary\"},{\"type\":\"button\",\"label\":\"删除\",\"actionType\":\"ajax\",\"confirmText\":\"确定要删除？\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_flow/delete/${id}\"},\"id\":\"u:e8d31e10119d\",\"editorSetting\":{\"behavior\":\"delete\"},\"level\":\"danger\"}],\"id\":\"u:c1d9c20cd253\"}],\"perPageAvailable\":[10],\"messages\":{}}],\"title\":\"\",\"id\":\"u:0000a3289a9c\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"header\",\"body\"]}'),('1808061906000785408', 'testOrder', '测试订单', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpTestOrder/query\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"bulkActions\":[],\"itemActions\":[],\"id\":\"u:7678156da6d3\",\"headerToolbar\":[{\"label\":\"新增\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"create\"},\"dialog\":{\"title\":\"新增\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_test_order/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"type\":\"input-text\",\"name\":\"order_code\",\"label\":\"订单号\",\"id\":\"u:4985390449d9\"},{\"type\":\"input-text\",\"name\":\"customer_name\",\"label\":\"客户姓名\",\"id\":\"u:c751642dae88\"},{\"type\":\"select\",\"name\":\"order_status\",\"label\":\"订单状态\",\"id\":\"u:d54cad6808df\",\"multiple\":false,\"source\":\"/admin/jqpDic/options/order_status\"},{\"type\":\"input-datetime\",\"label\":\"创建时间\",\"name\":\"create_time\",\"id\":\"u:a2fce0ac1bfd\",\"valueFormat\":\"YYYY-MM-DD HH:mm:ss\",\"placeholder\":\"请选择日期以及时间\",\"displayFormat\":\"YYYY-MM-DD HH:mm:ss\",\"minDate\":\"\",\"maxDate\":\"\",\"value\":\"\"}],\"id\":\"u:4b0b9744d110\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:cd306a7a09a2\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:7d89c87b9793\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:de002a4baa33\"}],\"actionType\":\"dialog\"},\"id\":\"u:a99d42f3a5e3\"},{\"type\":\"bulk-actions\"}],\"columns\":[{\"name\":\"order_code\",\"label\":\"订单号\",\"type\":\"text\",\"id\":\"u:37cc242eb71c\",\"searchable\":true},{\"type\":\"text\",\"label\":\"客户姓名\",\"name\":\"customer_name\",\"id\":\"u:216a8ac8bbe6\"},{\"type\":\"mapping\",\"label\":\"订单状态\",\"name\":\"order_status\",\"id\":\"u:dd771a5726a8\",\"source\":{\"url\":\"/admin/jqpDic/options/order_status\",\"method\":\"get\"}},{\"type\":\"text\",\"label\":\"创建时间\",\"name\":\"create_time\",\"id\":\"u:188c713a78ff\"},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"编辑\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"update\"},\"dialog\":{\"title\":\"编辑\",\"body\":[{\"type\":\"form\",\"api\":{\"method\":\"post\",\"url\":\"/admin/common/jqp_test_order/save\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"body\":[{\"name\":\"id\",\"label\":\"ID\",\"id\":\"u:4a34e67c90bd\",\"type\":\"input-text\",\"hidden\":true},{\"label\":\"订单号\",\"name\":\"order_code\",\"id\":\"u:deab4f3d8baa\",\"type\":\"input-text\"},{\"label\":\"客户姓名\",\"name\":\"customer_name\",\"id\":\"u:a5b6be909846\",\"type\":\"input-text\"},{\"type\":\"select\",\"label\":\"订单状态\",\"name\":\"order_status\",\"id\":\"u:cf4311a195d2\",\"multiple\":false,\"source\":\"/admin/jqpDic/options/order_status\"},{\"type\":\"input-datetime\",\"label\":\"创建时间\",\"name\":\"create_time\",\"id\":\"u:f3baab26e8d5\",\"placeholder\":\"请选择日期以及时间\",\"valueFormat\":\"YYYY-MM-DD HH:mm:ss\",\"displayFormat\":\"YYYY-MM-DD HH:mm:ss\",\"minDate\":\"\",\"maxDate\":\"\",\"value\":\"\"}],\"id\":\"u:dcb1dde907de\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true}],\"feat\":\"Insert\",\"dsType\":\"api\"}],\"type\":\"dialog\",\"id\":\"u:7083803bce3c\",\"actions\":[{\"type\":\"button\",\"actionType\":\"cancel\",\"label\":\"取消\",\"id\":\"u:6be41db3177a\"},{\"type\":\"button\",\"actionType\":\"confirm\",\"label\":\"确定\",\"primary\":true,\"id\":\"u:3da02e09274e\"}],\"actionType\":\"dialog\"},\"id\":\"u:1889a3e34aca\"},{\"type\":\"button\",\"label\":\"删除\",\"actionType\":\"ajax\",\"level\":\"danger\",\"confirmText\":\"确定要删除？\",\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpTestOrder/query\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"editorSetting\":{\"behavior\":\"delete\"},\"id\":\"u:237975e5b3d7\"},{\"type\":\"button\",\"label\":\"提交\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"outputVar\":\"responseResult\",\"actionType\":\"ajax\",\"options\":{},\"api\":{\"url\":\"/admin/jqpFlow/start/test01/${id}/测试订单-${order_code}\",\"method\":\"get\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}}},{\"componentId\":\"u:7678156da6d3\",\"groupType\":\"component\",\"actionType\":\"reload\"}]}},\"id\":\"u:8b1d69c05928\",\"level\":\"primary\",\"visible\":true,\"disabledOn\":\"${!ARRAYINCLUDES([\\\"1\\\",\\\"3\\\"],order_status)}\"},{\"type\":\"button\",\"label\":\"审核记录\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"dialog\",\"dialog\":{\"type\":\"dialog\",\"title\":\"审核记录\",\"body\":[{\"type\":\"service\",\"body\":[],\"id\":\"u:f945087fb803\",\"dsType\":\"api\",\"schemaApi\":\"/page/auditRecords\"}],\"id\":\"u:973e33182950\",\"actions\":[],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"size\":\"xl\",\"withDefaultData\":false,\"dataMapSwitch\":false,\"actionType\":\"dialog\"}}]}},\"id\":\"u:107e68c8d994\",\"level\":\"primary\"}],\"id\":\"u:9e6bfb4403f4\"}],\"perPageAvailable\":[10],\"messages\":{},\"autoGenerateFilter\":true}],\"title\":\"\",\"id\":\"u:a966f86ad777\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"],\"definitions\":{}}'),('1808387921533181952', 'flowInstanceTask', '流程任务', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpFlow/queryTask\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"bulkActions\":[],\"itemActions\":[],\"id\":\"u:c78a67a9ae53\",\"columns\":[{\"name\":\"flow_name\",\"label\":\"流程名称\",\"type\":\"text\",\"id\":\"u:ade5a2532cfc\",\"searchable\":true},{\"type\":\"text\",\"label\":\"流程实例名称\",\"name\":\"flow_instance_name\",\"id\":\"u:1d687f1acf60\",\"searchable\":true,\"sortable\":true},{\"type\":\"text\",\"label\":\"任务名称\",\"name\":\"task_name\",\"id\":\"u:2552b67d8f10\",\"searchable\":true},{\"type\":\"text\",\"label\":\"流转\",\"name\":\"edge_name\",\"id\":\"u:e674d848dff4\"},{\"type\":\"text\",\"label\":\"开始时间\",\"name\":\"start_time\",\"id\":\"u:73bea3ee20bc\"},{\"type\":\"text\",\"label\":\"结束时间\",\"name\":\"end_time\",\"id\":\"u:c56880588448\"},{\"type\":\"operation\",\"label\":\"操作\",\"buttons\":[{\"label\":\"查看\",\"type\":\"button\",\"actionType\":\"dialog\",\"level\":\"primary\",\"editorSetting\":{\"behavior\":\"view\"},\"dialog\":{\"title\":\"查看详情\",\"body\":[{\"type\":\"tabs\",\"id\":\"u:000c18fc0604\",\"tabs\":[{\"title\":\"任务详情\",\"body\":[{\"type\":\"form\",\"body\":[{\"name\":\"flow_name\",\"label\":\"流程名称\",\"type\":\"static\",\"id\":\"u:4d9d287f1ee1\"},{\"label\":\"流程实例名称\",\"name\":\"flow_instance_name\",\"type\":\"static\",\"id\":\"u:b2586fba3160\"},{\"label\":\"任务名称\",\"name\":\"task_name\",\"type\":\"static\",\"id\":\"u:417740655248\"},{\"label\":\"流转\",\"name\":\"edge_name\",\"type\":\"static\",\"id\":\"u:950806047f23\"},{\"label\":\"开始时间\",\"name\":\"start_time\",\"type\":\"static\",\"id\":\"u:2c9a732b5b8d\"},{\"label\":\"结束时间\",\"name\":\"end_time\",\"type\":\"static\",\"id\":\"u:bbee512583c4\"},{\"type\":\"input-file\",\"label\":\"附件\",\"name\":\"files\",\"id\":\"u:e7cdda63e941\",\"autoUpload\":true,\"proxy\":true,\"uploadType\":\"fileReceptor\",\"btnLabel\":\"文件上传\",\"multiple\":false,\"useChunk\":false,\"accept\":\"\",\"drag\":false,\"hideUploadButton\":true,\"disabled\":true},{\"type\":\"input-image\",\"label\":\"图片\",\"autoUpload\":true,\"proxy\":true,\"uploadType\":\"fileReceptor\",\"name\":\"imgs\",\"id\":\"u:7766ea71cbdb\",\"multiple\":true,\"accept\":\".jpeg, .jpg, .png, .gif\",\"hideUploadButton\":true,\"imageClassName\":\"r w-full\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"disabled\":true},{\"type\":\"static-text\",\"label\":\"审核备注\",\"name\":\"remark\",\"id\":\"u:6a3e35328f2a\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"minRows\":3,\"maxRows\":20}],\"id\":\"u:dbd34c932c38\",\"actions\":[{\"type\":\"submit\",\"label\":\"提交\",\"primary\":true,\"id\":\"u:cbaad60843d9\"}],\"feat\":\"View\",\"dsType\":\"api\",\"wrapWithPanel\":false,\"mode\":\"horizontal\",\"columnCount\":2,\"initApi\":\"\"}],\"id\":\"u:9d7845ce890e\"},{\"title\":\"单据信息\",\"body\":[{\"type\":\"service\",\"body\":[],\"id\":\"u:6f355e3c6a25\",\"dsType\":\"api\",\"schemaApi\":\"/page/${page_code}\"}],\"id\":\"u:fd316390a24a\"},{\"title\":\"流程图\",\"body\":[{\"type\":\"iframe\",\"src\":\"/jqp-flow/index.html?flowId=${flow_id}&flowInstanceId=${flow_instance_id}\",\"id\":\"u:b6e082bb9ac8\",\"height\":\"500px\"}],\"id\":\"u:eafe37bbe620\"},{\"title\":\"审核记录\",\"body\":[{\"type\":\"service\",\"id\":\"u:6f355e3c6a25\",\"body\":[],\"dsType\":\"api\",\"schemaApi\":\"/page/auditRecords\"}],\"id\":\"u:48dde7d72ef9\"}],\"mountOnEnter\":true}],\"type\":\"dialog\",\"actionType\":\"dialog\",\"id\":\"u:f58d3923769f\",\"actions\":[],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"size\":\"xl\"},\"id\":\"u:17554a60c4ca\"},{\"type\":\"button\",\"label\":\"审批\",\"onEvent\":{\"click\":{\"actions\":[{\"ignoreError\":false,\"actionType\":\"dialog\",\"dialog\":{\"type\":\"dialog\",\"title\":\"审批\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"\",\"id\":\"u:83b27d553754\"},{\"type\":\"tabs\",\"tabs\":[{\"title\":\"单据详情\",\"body\":[{\"type\":\"service\",\"id\":\"u:8a59e36d782d\",\"dsType\":\"api\",\"schemaApi\":\"/page/${page_code}\"},{\"id\":\"u:c1d44c81ff28\",\"type\":\"form\",\"title\":\"表单\",\"mode\":\"horizontal\",\"dsType\":\"api\",\"feat\":\"Insert\",\"body\":[{\"type\":\"radios\",\"label\":\"审批结果\",\"name\":\"edge_id\",\"id\":\"u:cd13ccb2d06d\",\"source\":{\"url\":\"/admin/jqpFlow/getNextEdges/${id}\",\"method\":\"get\"},\"required\":true},{\"name\":\"remark\",\"label\":\"审核备注\",\"type\":\"textarea\",\"id\":\"u:f1724ccb2872\"},{\"name\":\"files\",\"label\":\"附件\",\"type\":\"input-file\",\"id\":\"u:f2447925166e\",\"btnLabel\":\"文件上传\",\"multiple\":true,\"uploadType\":\"fileReceptor\",\"proxy\":true,\"autoUpload\":true,\"useChunk\":false,\"accept\":\"\",\"drag\":false,\"receiver\":{\"url\":\"/admin/file/upload\",\"method\":\"post\"}},{\"name\":\"imgs\",\"label\":\"图片上传\",\"type\":\"input-image\",\"id\":\"u:b853fc9fbbe3\",\"accept\":\".jpeg, .jpg, .png, .gif\",\"uploadType\":\"fileReceptor\",\"proxy\":true,\"multiple\":true,\"hideUploadButton\":false,\"autoUpload\":false,\"receiver\":{\"url\":\"/admin/file/upload\",\"method\":\"post\"}},{\"type\":\"container\",\"isFreeContainer\":true,\"size\":\"xs\",\"body\":[{\"type\":\"button\",\"label\":\"确认\",\"onEvent\":{\"click\":{\"actions\":[{\"componentId\":\"u:c1d44c81ff28\",\"ignoreError\":false,\"outputVar\":\"submitResult\",\"actionType\":\"submit\"}]}},\"style\":{\"position\":\"absolute\",\"inset\":\"13px auto auto 92px\"},\"id\":\"u:896384866c73\",\"originPosition\":\"left-top\",\"level\":\"primary\",\"confirmText\":\"确认提交吗\"},{\"type\":\"button\",\"label\":\"取消\",\"onEvent\":{\"click\":{\"actions\":[]}},\"style\":{\"position\":\"absolute\",\"inset\":\"12px auto auto 7px\"},\"id\":\"u:a35f519ed9d9\",\"originPosition\":\"left-top\",\"actionType\":\"close\"}],\"wrapperBody\":false,\"style\":{\"position\":\"absolute\",\"zIndex\":1,\"inset\":\"auto -15px -67px auto\",\"minWidth\":\"150px\",\"height\":\"50px\",\"overflowY\":\"visible\"},\"id\":\"u:1450f0766789\",\"isFixedHeight\":true,\"isFixedWidth\":false,\"stickyPosition\":\"auto\",\"originPosition\":\"right-bottom\"}],\"actions\":[{\"type\":\"button\",\"label\":\"重置\",\"onEvent\":{\"click\":{\"actions\":[{\"actionType\":\"reset\",\"componentId\":\"u:c1d44c81ff28\"}]}},\"level\":\"default\",\"id\":\"u:991c9a8121b7\"},{\"type\":\"button\",\"label\":\"提交\",\"onEvent\":{\"click\":{\"actions\":[{\"actionType\":\"submit\",\"componentId\":\"u:c1d44c81ff28\"}]}},\"level\":\"primary\",\"id\":\"u:59d1f895d2fc\"}],\"resetAfterSubmit\":true,\"affixFooter\":true,\"wrapWithPanel\":false,\"api\":{\"url\":\"/admin/jqpFlow/completeTask/${id}/${edge_id}\",\"method\":\"post\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"onEvent\":{\"submitSucc\":{\"weight\":0,\"actions\":[{\"ignoreError\":false,\"actionType\":\"closeDialog\"},{\"componentId\":\"u:c78a67a9ae53\",\"groupType\":\"component\",\"actionType\":\"reload\"}]}}}],\"id\":\"u:fc46a64be065\"},{\"title\":\"流程图\",\"body\":[{\"type\":\"iframe\",\"id\":\"u:bb70e0902099\",\"src\":\"/jqp-flow/index.html?flowId=${flow_id}&flowInstanceId=${flow_instance_id}\",\"height\":\"500px\"}],\"id\":\"u:98b9d0fe97d5\"},{\"title\":\"审核记录\",\"body\":[{\"type\":\"service\",\"body\":[],\"dsType\":\"api\",\"schemaApi\":\"/page/auditRecords\"}],\"id\":\"u:17015b1c5195\"}],\"mountOnEnter\":true,\"id\":\"u:e3fb3a6d4074\"}],\"id\":\"u:6b4b6cb8f764\",\"actions\":[],\"showCloseButton\":true,\"closeOnOutside\":false,\"closeOnEsc\":false,\"showErrorMsg\":true,\"showLoading\":true,\"draggable\":false,\"size\":\"xl\",\"actionType\":\"dialog\",\"withDefaultData\":false,\"dataMapSwitch\":false}}]}},\"id\":\"u:9dad0622ae92\",\"level\":\"primary\",\"disabledOn\":\"${end_time!=null}\"}],\"id\":\"u:96a59f5e72da\"}],\"autoGenerateFilter\":true}],\"title\":\"\",\"id\":\"u:8452729281ab\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"],\"definitions\":{}}'),('1808427185385992192', 'orderFlowView', '订单详情', '{\"type\":\"page\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"\",\"wrapperComponent\":\"\",\"inline\":false,\"id\":\"u:07039afd2550\"},{\"id\":\"u:4dd1bde965e9\",\"type\":\"form\",\"title\":\"表单\",\"mode\":\"horizontal\",\"dsType\":\"api\",\"feat\":\"Insert\",\"body\":[{\"type\":\"static\",\"label\":\"订单号\",\"id\":\"u:5d745711c79d\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"name\":\"order_code\"},{\"type\":\"static-mapping\",\"label\":\"状态\",\"id\":\"u:4096d8afd491\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"name\":\"order_status\",\"multiple\":false,\"source\":\"/admin/jqpDic/options/order_status\",\"disabled\":true},{\"type\":\"static\",\"label\":\"客户姓名\",\"id\":\"u:f18aef66472c\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"name\":\"customer_name\"},{\"type\":\"static\",\"label\":\"创建时间\",\"id\":\"u:1abd56da3d67\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"name\":\"create_time\"}],\"actions\":[{\"type\":\"button\",\"label\":\"提交\",\"onEvent\":{\"click\":{\"actions\":[{\"actionType\":\"submit\",\"componentId\":\"u:4dd1bde965e9\"}]}},\"level\":\"primary\",\"id\":\"u:54ebbc9cabdd\"}],\"resetAfterSubmit\":true,\"wrapWithPanel\":false}],\"title\":\"\",\"id\":\"u:d3eb521ff503\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"initApi\":{\"url\":\"/admin/common/jqp_test_order/getById?id=${ref_id}\",\"method\":\"get\"},\"regions\":[\"body\"]}'),('1808696666536484864', 'auditRecords', '审核记录', '{\"type\":\"page\",\"body\":[{\"type\":\"crud\",\"syncLocation\":false,\"api\":{\"method\":\"post\",\"url\":\"/admin/jqpFlow/records/${table_name}/${ref_id}\",\"requestAdaptor\":\"\",\"adaptor\":\"\",\"messages\":{}},\"bulkActions\":[],\"itemActions\":[],\"columns\":[{\"name\":\"start_time\",\"label\":\"开始时间\",\"type\":\"text\",\"id\":\"u:ec4f02f93109\"},{\"name\":\"end_time\",\"label\":\"结束时间\",\"type\":\"text\",\"id\":\"u:96d7c15bfb08\"},{\"type\":\"text\",\"label\":\"任务名称\",\"name\":\"task_name\",\"id\":\"u:dd90d13ad493\"},{\"type\":\"text\",\"label\":\"审核人\",\"name\":\"name\",\"id\":\"u:cdc44a33de4f\"},{\"type\":\"text\",\"label\":\"审核结果\",\"name\":\"edge_name\",\"id\":\"u:8c36acb980d1\"},{\"type\":\"input-file\",\"label\":\"附件\",\"name\":\"files\",\"id\":\"u:eab838b99ba6\",\"btnLabel\":\"文件上传\",\"multiple\":true,\"uploadType\":\"fileReceptor\",\"proxy\":true,\"autoUpload\":true,\"useChunk\":false,\"accept\":\"\",\"drag\":false,\"disabled\":true},{\"type\":\"input-image\",\"label\":\"图片\",\"name\":\"imgs\",\"id\":\"u:b9dcb2914e57\",\"accept\":\".jpeg, .jpg, .png, .gif\",\"uploadType\":\"fileReceptor\",\"proxy\":true,\"multiple\":true,\"hideUploadButton\":true,\"autoUpload\":false,\"disabled\":true},{\"type\":\"text\",\"label\":\"审核备注\",\"name\":\"remark\",\"id\":\"u:e1bfc396a8a5\"}],\"id\":\"u:3bcd21feb604\",\"perPageAvailable\":[10],\"messages\":{},\"footerToolbar\":[],\"headerToolbar\":[],\"showHeader\":false}],\"title\":\"\",\"id\":\"u:eca2e62dffb2\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"regions\":[\"body\"]}'),('1808707928569925632', 'orderFlowView2', '订单详情2', '{\"type\":\"page\",\"body\":[{\"type\":\"tpl\",\"tpl\":\"\",\"wrapperComponent\":\"\",\"inline\":false,\"id\":\"u:07039afd2550\"},{\"id\":\"u:4dd1bde965e9\",\"type\":\"form\",\"title\":\"表单\",\"mode\":\"horizontal\",\"dsType\":\"api\",\"feat\":\"Insert\",\"body\":[{\"type\":\"static\",\"label\":\"订单号2\",\"id\":\"u:5d745711c79d\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"name\":\"order_code\"},{\"type\":\"static-mapping\",\"label\":\"状态\",\"id\":\"u:4096d8afd491\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"name\":\"order_status\",\"multiple\":false,\"source\":\"/admin/jqpDic/options/order_status\",\"disabled\":true},{\"type\":\"static\",\"label\":\"客户姓名\",\"id\":\"u:f18aef66472c\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"name\":\"customer_name\"},{\"type\":\"static\",\"label\":\"创建时间\",\"id\":\"u:1abd56da3d67\",\"quickEdit\":false,\"popOver\":false,\"copyable\":false,\"name\":\"create_time\"}],\"actions\":[{\"type\":\"button\",\"label\":\"提交\",\"onEvent\":{\"click\":{\"actions\":[{\"actionType\":\"submit\",\"componentId\":\"u:4dd1bde965e9\"}]}},\"level\":\"primary\",\"id\":\"u:54ebbc9cabdd\"}],\"resetAfterSubmit\":true,\"wrapWithPanel\":false}],\"title\":\"\",\"id\":\"u:d3eb521ff503\",\"asideResizor\":false,\"pullRefresh\":{\"disabled\":true},\"initApi\":{\"url\":\"/admin/common/jqp_test_order/getById?id=${ref_id}\",\"method\":\"get\"},\"regions\":[\"body\"]}');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_role` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_role`;
INSERT INTO `jqp-admin-v2`.`jqp_role` (`id`,`name`,`code`,`menu_ids`) VALUES ('1796386176418369536', '管理员', 'admin', '1794983115506450432,1795999099986112512,1801422856271683584,1801423035691425792,1801448762683883520'),('1796428130170621952', '测试', 'test', '1794983404615630848,1797461892664856576,1797462245183524864'),('1796430514829578240', '测试2', 'test2', '1794983339717165056');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_test_order` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_test_order`;
INSERT INTO `jqp-admin-v2`.`jqp_test_order` (`id`,`order_code`,`customer_name`,`order_status`,`create_time`) VALUES ('1808065600104673280', 'R-001', '张三', '2', '2024-07-02 17:10:03');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`jqp_user` WRITE;
DELETE FROM `jqp-admin-v2`.`jqp_user`;
INSERT INTO `jqp-admin-v2`.`jqp_user` (`id`,`account`,`salt`,`password`,`name`,`role_ids`) VALUES ('1796000120376389632', 'admin', '1796382387137380352', '4d4227939e3b3a5f4ed646b6c629af38', '管理员', '1796386176418369536'),('1796428219232473088', 'test', '1796428219228278784', 'd4543ac546020ae1c8df045cd8b481d0', '测试', '1796428130170621952,1796430514829578240');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`magic_api_file` WRITE;
DELETE FROM `jqp-admin-v2`.`magic_api_file`;
INSERT INTO `jqp-admin-v2`.`magic_api_file` (`file_path`,`file_content`) VALUES ('magic-api/api/', 'this is directory'),('magic-api/api/admin/', 'this is directory'),('magic-api/api/admin/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"name\" : \"admin\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"/admin\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1716515179976,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/公共接口/', 'this is directory'),('magic-api/api/admin/公共接口/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"6956a7fdb6a84d6faa4ed07cac2f5a77\",\r\n  \"name\" : \"公共接口\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/common\",\r\n  \"createTime\" : 1716876818021,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/公共接口/save.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"39b1d9d9677c43a2b612849fe73d2834\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"6956a7fdb6a84d6faa4ed07cac2f5a77\",\r\n  \"name\" : \"save\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1716880337238,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/{tableName}/save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"tableName\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'@/db/saveOrUpdate\' as saveOrUpdate;\r\n\r\nreturn saveOrUpdate(tableName,body)'),('magic-api/api/admin/公共接口/删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"5837f8f7f3b647e384cd13e94112a843\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"6956a7fdb6a84d6faa4ed07cac2f5a77\",\r\n  \"name\" : \"删除\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1716877100659,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/{tableName}/delete/{id}\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"tableName\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"id\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\n\r\ndb.table(tableName).where().eq(\"id\",id).delete();\r\n\r\nreturn \'ok\''),('magic-api/api/admin/公共接口/根据id获取.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"e925639dd3e54c47bd113c0fc331a01e\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"6956a7fdb6a84d6faa4ed07cac2f5a77\",\r\n  \"name\" : \"根据id获取\",\r\n  \"createTime\" : 1716877037012,\r\n  \"updateTime\" : null,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/{tableName}/getById\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ {\r\n    \"name\" : \"id\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"tableName\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\n\r\nreturn db\r\n        .table(tableName)\r\n        .where().eq(\"id\",id)\r\n        .selectOne();\r\n'),('magic-api/api/admin/数据字典/', 'this is directory'),('magic-api/api/admin/数据字典/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"5ef7701a595d4bed9fa57518c1393c74\",\r\n  \"name\" : \"数据字典\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/jqpDic\",\r\n  \"createTime\" : 1716881552178,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/数据字典/删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"c4fc7d57b3f74a2591f078f26d62b620\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"5ef7701a595d4bed9fa57518c1393c74\",\r\n  \"name\" : \"删除\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717031966550,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/delete/{id}\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"id\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\n\r\n\r\ndb.transaction(()->{\r\n    db.table(\'jqp_dic_item\').where().eq(\"dic_id\",id).delete();\r\n    db.table(\'jqp_dic\').where().eq(\"id\",id).delete();\r\n})\r\n\r\nreturn \'ok\''),('magic-api/api/admin/数据字典/查询.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"5020f65215e045f39aad76f9541da678\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"5ef7701a595d4bed9fa57518c1393c74\",\r\n  \"name\" : \"查询\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1716882189332,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/query\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nlet page = db.page(\"select * from jqp_dic\",body.perPage,(body.page-1)*body.perPage);\r\n\r\nreturn {\r\n    total:page.total,\r\n    items:page.list || []\r\n}'),('magic-api/api/admin/数据字典/获取明细.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"af1cd1cf5dbb4d9f87b0ddca4e4b3415\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"5ef7701a595d4bed9fa57518c1393c74\",\r\n  \"name\" : \"获取明细\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1716883524492,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/items/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"id\",\r\n    \"value\" : null,\r\n    \"description\" : \"字典id\",\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nlet items = db.select(\"select * from jqp_dic_item where dic_id = #{id} \");\r\n\r\nreturn {\r\n    items:items || []\r\n}'),('magic-api/api/admin/数据字典/获取选项.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"484b4d176d674176b748ca5668ab74b1\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"5ef7701a595d4bed9fa57518c1393c74\",\r\n  \"name\" : \"获取选项\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717032084762,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/options/{code}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"code\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\n\r\nreturn db.select(\"\"\"\r\n    select di.name label,di.value from jqp_dic_item di,\r\n    jqp_dic d \r\n    where di.dic_id = d.id\r\n    and d.code = #{code}\r\n\"\"\")\r\n'),('magic-api/api/admin/文件/', 'this is directory'),('magic-api/api/admin/文件/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"文件\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/file\",\r\n  \"createTime\" : 1718181104261,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/文件/testRename.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"69a3eaee5fe141ea83586811eb3cbfe5\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"testRename\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718936647105,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/testRename\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": \\\"D:\\\\\\\\jqp-admin-v2\\\\\\\\static\\\\\\\\test.html\\\"\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"D:\\\\\\\\jqp-admin-v2\\\\\\\\static\\\\\\\\test.html\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport java.nio.file.Files\r\nimport java.io.File\r\n// D:\\jqp-admin-v2\\static\\test.html\r\n\r\nlet file = new File(\"D:\\\\jqp-admin-v2\\\\static\\\\test.html\")\r\nfile.renameTo(new File(\"D:\\\\jqp-admin-v2\\\\static\\\\test1.html\"))\r\n\r\nreturn file.getAbsolutePath();'),('magic-api/api/admin/文件/上传.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"9608e59712164c82919d4bdd824f7117\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"上传\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718864208499,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/upload\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ {\r\n    \"name\" : \"dir\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.core.util.StrUtil\r\nimport java.io.File\r\nimport cn.hutool.core.io.FileUtil\r\nimport request;\r\nimport log;\r\n\r\nlet file = request.getFile(\"file\");\r\nlog.info(\"file:{}\",file)\r\n\r\n\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\n\r\nlet realName = file.getOriginalFilename();\r\n\r\ndir = dir || date_format(now(),\"yyyy/MM/dd\");\r\n\r\n// 生成目录\r\nnew File(baseDir+\"/\"+dir).mkdirs();\r\n\r\n// 年/月/日/文件名\r\nlet path = StrUtil.format(\"{}/{}\",dir,realName);\r\n\r\nlet dest = baseDir + \"/\" + path;\r\nlet downloadPath = \"/admin/file/download/\"+path;\r\nfile.transferTo(new File(dest));\r\n\r\nreturn {\r\n    value:downloadPath\r\n}'),('magic-api/api/admin/文件/下载.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"933324e3f3074556882dd612d8f06d9a\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"下载\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718936686749,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/download/**\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport java.nio.file.Paths\r\nimport java.nio.file.Files\r\nimport javax.activation.MimetypesFileTypeMap\r\nimport java.nio.charset.Charset\r\nimport cn.hutool.core.net.URLDecoder\r\nimport java.net.URLEncoder\r\nimport java.io.FileInputStream\r\nimport cn.hutool.core.io.IoUtil\r\nimport cn.hutool.core.io.FileUtil\r\nimport java.io.File\r\nimport cn.hutool.core.util.StrUtil\r\nimport response;\r\nimport log;\r\nimport request;\r\n\r\nlet uri = request.get().getRequestURI();\r\nlet prefix = \'/admin/file/download/\';\r\nuri = uri.substring(prefix.length());\r\n\r\nlet fileName = uri.substring(uri.lastIndexOf(\"/\")+1);\r\nlet filePath = URLDecoder.decode(uri,Charset.forName(\"UTF-8\"));\r\n\r\nfileName = URLDecoder.decode(fileName,Charset.forName(\"UTF-8\"));\r\nlog.info(\"downloadUri:{},{},{}\",uri,fileName,filePath);\r\n\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\nlet dest = StrUtil.format(\"{}/{}\",baseDir,filePath);\r\n\r\nlet mime = new MimetypesFileTypeMap();\r\n// let contentType = mime.getContentType(new File(dest));\r\nlet contentType = Files.probeContentType(Paths.get(dest));\r\n\r\ndownLoadFileName = URLEncoder.encode(fileName,\"UTF-8\");\r\n\r\n\r\nlog.info(\"content-type:{}\",contentType)\r\n// log.info(\"content-type:{}\",Files.probeContentType(Paths.get(dest)))\r\n\r\n//response.addHeader(\"Content-Disposition\",\"attachment;fileName=\"+downLoadFileName);\r\nresponse.addHeader(\"Content-Type\",contentType);\r\nlet inputStream = new FileInputStream(dest);\r\nIoUtil.copy(inputStream,response.getOutputStream())\r\nIoUtil.close(inputStream)\r\nreturn response.end();\r\n\r\n//return \'Hello magic-api\''),('magic-api/api/admin/文件/删除文件.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"ec689e73572044f898510fbad39d580e\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"删除文件\",\r\n  \"createTime\" : 1718874397416,\r\n  \"updateTime\" : null,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/deleteFile\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport java.io.File\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\n\r\nnew File(baseDir+\"/\"+body.id).delete();\r\n\r\nreturn \"ok\"'),('magic-api/api/admin/文件/删除目录.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"f906763efc654909b2a347b435eb1476\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"删除目录\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718873275182,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/deleteFolder\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport java.io.File\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\n\r\nbody.value = body.value.replaceAll(\"\\\\\\\\\\\\\\\\\",\"/\");\r\n\r\nlet file = new File(baseDir+\"/\"+body.value);\r\n\r\nlet deleteFile = (f)=>{\r\n    \r\n    if(file.isDirectory()){\r\n        let childs = f.listFiles();\r\n        if(childs != null){\r\n            for(index,child in childs){\r\n                deleteFile(child);\r\n            }\r\n        }\r\n    }\r\n    f.delete();\r\n}\r\n\r\ndeleteFile(file);\r\n\r\nreturn \"ok\"'),('magic-api/api/admin/文件/文件重命名.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"085f8f39bf424699b1076e77fd0bb253\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"文件重命名\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718936214648,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"rename\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport java.io.File\r\nimport log;\r\n\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\n\r\n// body.value = body.value.replaceAll(\"\\\\\\\\\\\\\\\\\",\"/\");\r\n\r\nlet file = new File(baseDir+\"/\"+body.id);\r\n\r\nlog.info(\"重命名:{},{},{}\",body.id,body.name,file.getAbsolutePath())\r\n\r\nfile.renameTo(new File(file.getParentFile(),body.name))\r\n\r\nreturn \"ok\"'),('magic-api/api/admin/文件/更新文件内容.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"c5375cfd95bd453cb23809a629beb5da\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"更新文件内容\",\r\n  \"createTime\" : 1718876988079,\r\n  \"updateTime\" : null,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/updateContent\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ {\r\n    \"name\" : \"id\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.core.io.FileUtil\r\nimport java.io.File\r\nimport log;\r\n\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\n\r\nlet file = new File(baseDir+\"/\"+id);\r\n\r\nFileUtil.writeString(body.content,file,\"UTF-8\")\r\n\r\nreturn \"ok\"'),('magic-api/api/admin/文件/测试.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"e75d7fff590747cf8e7557cd2961a7d9\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"测试\",\r\n  \"createTime\" : 1718851667445,\r\n  \"updateTime\" : null,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/test/**\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn \'Hello magic-api test\''),('magic-api/api/admin/文件/添加目录.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"951b9dfa30434078a3644164520deaec\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"添加目录\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718872752734,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/addFolder\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport java.io.File\r\n\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\nif(body.parent){\r\n    new File(baseDir+\"/\"+body.parent.value+\"/\"+body.label).mkdir();\r\n}else{\r\n    new File(baseDir+\"/\"+body.label).mkdir();\r\n}\r\n\r\nreturn \"ok\"'),('magic-api/api/admin/文件/编辑目录.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"50f6543cd6a7415496bf5957dac221aa\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"编辑目录\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718873007966,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/editFolder\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport java.io.File\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\n\r\nbody.value = body.value.replaceAll(\"\\\\\\\\\\\\\\\\\",\"/\");\r\n\r\nlet file = new File(baseDir+\"/\"+body.value);\r\nfile.renameTo(new File(file.getParentFile(),body.label))\r\n\r\nreturn \"ok\"'),('magic-api/api/admin/文件/获取文本内容.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"6c74d1ba9fd54c24b940505dfcdba496\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"获取文本内容\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718876772663,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getContent\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ {\r\n    \"name\" : \"id\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.core.io.FileUtil\r\nimport java.io.File\r\nimport log;\r\n\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\n\r\nlet file = new File(baseDir+\"/\"+id);\r\n\r\n\r\n\r\nreturn {\r\n    \"content\":FileUtil.readString(file,\"UTF-8\")\r\n}'),('magic-api/api/admin/文件/获取目录.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"5fa386d94c4548c5815bef6d7f1e85ad\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"获取目录\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718933113402,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/dirs\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": [{\\n        \\\"label\\\": \\\"a\\\",\\n        \\\"id\\\": \\\"a\\\",\\n        \\\"children\\\": []\\n    }, {\\n        \\\"label\\\": \\\"b\\\",\\n        \\\"id\\\": \\\"b\\\",\\n        \\\"children\\\": []\\n    }]\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Array\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ {\r\n        \"name\" : \"\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Object\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"label\",\r\n          \"value\" : \"a\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"id\",\r\n          \"value\" : \"a\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"children\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Array\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        } ]\r\n      } ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport java.io.File\r\n\r\nlet baseDir = \"D:/jqp-admin-v2\";\r\nlet root = new File(baseDir);\r\n\r\nlet getFiles = (f)=>{\r\n    let childs = f.listFiles();\r\n    let items = [];\r\n    if(childs == null){\r\n        return items;\r\n    }\r\n    for(index,child in childs){\r\n        if(child.isDirectory()){\r\n            items.push({\r\n                label:child.getName(),\r\n                value:child.getAbsolutePath().substring(baseDir.length()+1),\r\n                children:getFiles(child),\r\n                icon:\"folder\"\r\n            })\r\n        }\r\n    }\r\n    return items\r\n}\r\n\r\nreturn getFiles(root);'),('magic-api/api/admin/文件/获取目录文件.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"f379eafa0adc4992bf260d1cab24686f\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e0e586b133434c258e87380480d9a30a\",\r\n  \"name\" : \"获取目录文件\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718933098751,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/files\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ {\r\n    \"name\" : \"dir\",\r\n    \"value\" : \"b\",\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": []\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Array\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport java.nio.file.Paths\r\nimport java.nio.file.Files\r\nimport java.text.DecimalFormat\r\nimport ch.qos.logback.core.util.FileUtil\r\nimport java.io.File\r\nimport log;\r\n\r\nlet baseDir = \"D:/jqp-admin-v2/\";\r\ndir = dir || \"\";\r\ndir = dir.replaceAll(\"\\\\\\\\\\\\\\\\\",\"/\");\r\nlog.info(\"dir:{}\",baseDir+dir)\r\nlet dirFile = new File(baseDir+dir);\r\n\r\nlet childs = dirFile.listFiles();\r\nlet items = [];\r\nif(childs == null){\r\n    return items;\r\n}\r\n\r\nlet sizeStr = (size)=>{\r\n    let unit = 1024;\r\n    sizeUnit = unit;\r\n	let sizes = { \"B\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\" };\r\n	let df = new DecimalFormat(\"#.##\");\r\n	for (i,a in sizes) {\r\n		if (size < sizeUnit) {\r\n			sizeUnit = sizeUnit / unit;\r\n			return df.format(size::double / (i == 0 ? 1 : sizeUnit)) + sizes[i];\r\n		}\r\n		sizeUnit = sizeUnit * unit;\r\n	}\r\n	return null;\r\n}\r\n\r\nfor(index,child in childs){\r\n    if(!child.isDirectory()){\r\n        items.push({\r\n            name:child.getName(),\r\n            id:dir+\"/\"+child.getName(),\r\n            updateTime:date_format(new Date(child.lastModified()),\"yyyy-MM-dd HH:mm:ss\"),\r\n            downloadPath:\"/admin/file/download/\"+dir+\"/\"+child.getName(),\r\n            size:sizeStr(child.length()),\r\n            length:child.length(),\r\n            contentType:Files.probeContentType(Paths.get(child.getPath()))\r\n        })\r\n    }\r\n}\r\n\r\nreturn items'),('magic-api/api/admin/流程/', 'this is directory'),('magic-api/api/admin/流程/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"be084bec4cdf44d0a598edaf5f56b692\",\r\n  \"name\" : \"流程\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/jqpFlow\",\r\n  \"createTime\" : 1719555477555,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/流程/启动流程.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"7d78efca30944e67940988b50547df2d\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"be084bec4cdf44d0a598edaf5f56b692\",\r\n  \"name\" : \"启动流程\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720064497614,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/start/{code}/{id}/{name}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"code\",\r\n    \"value\" : \"test01\",\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"id\",\r\n    \"value\" : \"1\",\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"name\",\r\n    \"value\" : \"测试\",\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": \\\"ok\\\"\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"ok\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport org.ssssssss.script.MagicScriptContext\r\nimport \'@/flow/getFlowContext\' as getFlowContext;\r\nimport \'@/flow/getNextNode\' as getNextNode;\r\nimport \'@/flow/getCandidateUserIds\' as getCandidateUserIds;\r\nimport \'@/flow/createNextTask\' as createNextTask;\r\nimport \'@/session/getUser\' as getUser;\r\nimport \'@/db/saveOrUpdate\' as saveOrUpdate;\r\nimport cn.hutool.core.util.IdUtil;\r\nimport magic;\r\nimport log;\r\nlet userId = getUser();\r\nlet user = db.selectOne(\"select * from jqp_user where id = #{userId}\")\r\n\r\nlet flow = db.selectOne(\"select * from jqp_flow where code = #{code}\");\r\nif(flow == null){\r\n    exit 9, \"流程编号错误\";\r\n}\r\nlet flowContext = getFlowContext(flow.graph_data);\r\n\r\n//return flowContext;\r\n// 查询未结束的流程实例\r\nlet flow_instance = db.selectOne(\"\"\"\r\n    select * from jqp_flow_instance instance \r\n    where flow_id = #{flow.id} \r\n    and ref_id = #{id} \r\n    and end_time is null \r\n\"\"\")\r\n\r\n//当前节点\r\nlet curNode = null;\r\nlet curTask = null;\r\n\r\nlet obj = db.selectOne(`select * from ${flow.table_name} where id = #{id}`)\r\n\r\n\r\nlet context = {\r\n    obj:obj,\r\n    name:name\r\n};\r\nlet nodeStatus = flowContext.startNode.properties.status;\r\nlet objStatus = obj[flow.status_field];\r\n\r\nlet nodeStatusList = Arrays.asList(nodeStatus.split(\",\"));\r\n\r\nif(not_blank(nodeStatus) && nodeStatusList.indexOf(objStatus)<0){\r\n\r\n    let nodeStatusNames = db.select( \"\"\"\r\n        select di.name from jqp_dic d,jqp_dic_item di \r\n        where d.code = #{flow.status_dic}\r\n        and d.id = di.dic_id\r\n        and di.value in (#{nodeStatusList})\r\n    \r\n    \"\"\").map(item->item.name).join(\",\");\r\n\r\n    exit 9, `只有[${nodeStatusNames}]才能发起流程`;\r\n}\r\n\r\ndb.transaction(()->{\r\n    if(flow_instance == null){\r\n        //新流程,找到开始节点\r\n        curNode = flowContext.startNode;\r\n\r\n        flow_instance = {\r\n            flow_id:flow.id,\r\n            name:name,\r\n            ref_id:id,\r\n            start_time:now(),\r\n            create_user_id:user.id,\r\n            create_user_name:user.name\r\n        };\r\n        saveOrUpdate(\'jqp_flow_instance\',flow_instance);\r\n\r\n        log.info(\"curNode:{}\",curNode);\r\n        \r\n        curTask = {\r\n            flow_instance_id:flow_instance.id,\r\n            task_name:curNode.text.value,\r\n            task_id:curNode.id,\r\n            start_time:now(),\r\n            candidate_user_ids:getCandidateUserIds(curNode,flow_instance,context),\r\n            page_code:curNode.properties.page\r\n        };\r\n        saveOrUpdate(\'jqp_flow_instance_task\',curTask);\r\n        flow_instance.current_task_id = curTask.id;\r\n        flow_instance.current_task_name = curTask.task_name;\r\n        saveOrUpdate(\'jqp_flow_instance\',flow_instance);\r\n        \r\n    }else{\r\n\r\n        curTask = db.selectOne(\"\"\"\r\n            select * from jqp_flow_instance_task \r\n            where flow_instance_id = #{flow_instance.id}\r\n            and id = #{flow_instance.current_task_id}\r\n        \"\"\")\r\n        curNode = flowContext.nodeMap[curTask.task_id];\r\n    }\r\n\r\n    let edge = flowContext.edgeMap[curNode.id][0];\r\n\r\n    let nextNode = flowContext.nodeMap[edge.targetNodeId]\r\n    let nextNodeData = getNextNode(nextNode,flowContext,context,edge);\r\n    nextNode = nextNodeData.node;\r\n    let nextNodeEdge = nextNodeData.node;\r\n\r\n    log.info(\"edgeIds:{}\",nextNodeData.edgeIds);\r\n\r\n    //完成任务\r\n    curTask.end_time = now();\r\n    curTask.edge_id = nextNodeData.edgeIds;\r\n    curTask.edge_name = nextNodeData.edgeNames;\r\n    curTask.audit_user_id = userId;\r\n\r\n    saveOrUpdate(\'jqp_flow_instance_task\',curTask);\r\n\r\n    \r\n    \r\n    //更新状态\r\n    if(nextNodeEdge && not_blank(nextNodeEdge.properties.status)){\r\n        obj[flow.status_field] = nextNodeEdge.properties.status;\r\n        saveOrUpdate(flow.table_name,obj);\r\n    }\r\n\r\n    createNextTask(nextNode,flow_instance);\r\n})\r\n\r\n\r\nreturn \'ok\''),('magic-api/api/admin/流程/完成任务.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"87d93863ec3c440cae09bac287d710e1\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"be084bec4cdf44d0a598edaf5f56b692\",\r\n  \"name\" : \"完成任务\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720059670228,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/completeTask/{taskId}/{edgeId}\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"taskId\",\r\n    \"value\" : \"1808051530412568576\",\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"edgeId\",\r\n    \"value\" : \"Flow_34sb22l\",\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": {\\n        \\\"edge\\\": {\\n            \\\"id\\\": \\\"Flow_34sb22l\\\",\\n            \\\"type\\\": \\\"JqpSequenceFlow\\\",\\n            \\\"sourceNodeId\\\": \\\"Activity_33fpbe2\\\",\\n            \\\"targetNodeId\\\": \\\"Event_0qoelp4\\\",\\n            \\\"startPoint\\\": {\\n                \\\"x\\\": 1130,\\n                \\\"y\\\": 520\\n            },\\n            \\\"endPoint\\\": {\\n                \\\"x\\\": 1340,\\n                \\\"y\\\": 378\\n            },\\n            \\\"properties\\\": {\\n                \\\"status\\\": \\\"4\\\"\\n            },\\n            \\\"text\\\": {\\n                \\\"x\\\": 1248,\\n                \\\"y\\\": 520,\\n                \\\"value\\\": \\\"审核通过\\\"\\n            },\\n            \\\"pointsList\\\": [{\\n                \\\"x\\\": 1130,\\n                \\\"y\\\": 520\\n            }, {\\n                \\\"x\\\": 1340,\\n                \\\"y\\\": 520\\n            }, {\\n                \\\"x\\\": 1340,\\n                \\\"y\\\": 378\\n            }]\\n        },\\n        \\\"task\\\": {\\n            \\\"id\\\": \\\"1808051530412568576\\\",\\n            \\\"flow_instance_id\\\": \\\"1808051529330438144\\\",\\n            \\\"task_name\\\": \\\"管理员审核\\\",\\n            \\\"task_id\\\": \\\"Activity_33fpbe2\\\",\\n            \\\"start_time\\\": \\\"2024-07-02T16:14:11\\\",\\n            \\\"end_time\\\": \\\"2024-07-02T08:14:38.552+00:00\\\",\\n            \\\"edge_id\\\": \\\"Flow_34sb22l\\\",\\n            \\\"edge_name\\\": \\\"审核通过\\\",\\n            \\\"candidate_user_ids\\\": \\\"1796000120376389632\\\",\\n            \\\"audit_user_id\\\": \\\"1796000120376389632\\\",\\n            \\\"jointly_sign_id\\\": null,\\n            \\\"jointly_sign_complete_time\\\": null,\\n            \\\"files\\\": null,\\n            \\\"imgs\\\": null,\\n            \\\"remark\\\": null\\n        },\\n        \\\"nextNode\\\": null\\n    }\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Object\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ {\r\n        \"name\" : \"edge\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Object\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"id\",\r\n          \"value\" : \"Flow_34sb22l\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"type\",\r\n          \"value\" : \"JqpSequenceFlow\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"sourceNodeId\",\r\n          \"value\" : \"Activity_33fpbe2\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"targetNodeId\",\r\n          \"value\" : \"Event_0qoelp4\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"startPoint\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"x\",\r\n            \"value\" : \"1130\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Integer\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"y\",\r\n            \"value\" : \"520\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Integer\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          } ]\r\n        }, {\r\n          \"name\" : \"endPoint\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"x\",\r\n            \"value\" : \"1340\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Integer\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"y\",\r\n            \"value\" : \"378\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Integer\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          } ]\r\n        }, {\r\n          \"name\" : \"properties\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"status\",\r\n            \"value\" : \"4\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          } ]\r\n        }, {\r\n          \"name\" : \"text\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"x\",\r\n            \"value\" : \"1248\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Integer\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"y\",\r\n            \"value\" : \"520\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Integer\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"value\",\r\n            \"value\" : \"审核通过\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          } ]\r\n        }, {\r\n          \"name\" : \"pointsList\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Array\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"\",\r\n            \"value\" : \"\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Object\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ {\r\n              \"name\" : \"x\",\r\n              \"value\" : \"1130\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"Integer\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"y\",\r\n              \"value\" : \"520\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"Integer\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            } ]\r\n          } ]\r\n        } ]\r\n      }, {\r\n        \"name\" : \"task\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Object\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"id\",\r\n          \"value\" : \"1808051530412568576\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"flow_instance_id\",\r\n          \"value\" : \"1808051529330438144\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"task_name\",\r\n          \"value\" : \"管理员审核\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"task_id\",\r\n          \"value\" : \"Activity_33fpbe2\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"start_time\",\r\n          \"value\" : \"2024-07-02T16:14:11\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"end_time\",\r\n          \"value\" : \"2024-07-02T08:14:38.552+00:00\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"edge_id\",\r\n          \"value\" : \"Flow_34sb22l\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"edge_name\",\r\n          \"value\" : \"审核通过\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"candidate_user_ids\",\r\n          \"value\" : \"1796000120376389632\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"audit_user_id\",\r\n          \"value\" : \"1796000120376389632\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"jointly_sign_id\",\r\n          \"value\" : \"null\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"jointly_sign_complete_time\",\r\n          \"value\" : \"null\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"files\",\r\n          \"value\" : \"null\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"imgs\",\r\n          \"value\" : \"null\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"remark\",\r\n          \"value\" : \"null\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        } ]\r\n      }, {\r\n        \"name\" : \"nextNode\",\r\n        \"value\" : \"null\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Object\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ ]\r\n      } ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport \'@/flow/getFlowContext\' as getFlowContext;\r\nimport \'@/flow/getNextNode\' as getNextNode;\r\nimport \'@/flow/createNextTask\' as createNextTask;\r\nimport \'@/db/saveOrUpdate\' as saveOrUpdate;\r\nimport \'@/session/getUser\' as getUser;\r\nimport log;\r\nlet userId = getUser();\r\nlet user = db.selectOne(\"select * from jqp_user where id = #{userId}\")\r\n\r\n\r\nlet task = db.selectOne(\"select * from jqp_flow_instance_task where id = #{taskId}\")\r\nlet flow_instance = db.selectOne(\"select * from jqp_flow_instance where id = #{task.flow_instance_id}\")\r\nlet flow =  db.selectOne(\"select * from jqp_flow where id = #{flow_instance.flow_id}\")\r\n\r\nlet obj = db.selectOne(`select * from ${flow.table_name} where id = #{flow_instance.ref_id}`)\r\n\r\n\r\nlet flowContext = getFlowContext(flow.graph_data);\r\nlet edges = flowContext.edgeMap[task.task_id];\r\nlet edge = edges.filter(item->item.id == edgeId)[0];\r\nlet node = flowContext.nodeMap[task.task_id];\r\n\r\ndb.transaction(()->{\r\n\r\n    task.end_time = now();\r\n    task.edge_id = edge.id;\r\n    task.edge_name = edge.text.value;\r\n    task.audit_user_id = userId;\r\n    task.files = body.files;\r\n    task.remark = body.remark;\r\n    task.imgs = body.imgs;\r\n    saveOrUpdate(\'jqp_flow_instance_task\',task);\r\n    let flag = true;\r\n    if(node.properties.checkType == \"任意成员审核通过\"){\r\n        \r\n    }else if(node.properties.checkType == \"全部成员审核通过\"){\r\n        let tasks = db.select(\"\"\"\r\n            select * from jqp_flow_instance_task \r\n            where flow_instance_id = #{task.flow_instance_id} \r\n            and jointly_sign_id = #{task.jointly_sign_id}\r\n        \"\"\");\r\n        \r\n        for(index,item in tasks){\r\n            if(item.end_time == null){\r\n                flag = false;\r\n            }\r\n        }\r\n        if(flag){\r\n            for(index,item in tasks){\r\n                item.jointly_sign_complete_time = now();\r\n                saveOrUpdate(\'jqp_flow_instance_task\',item);\r\n            }\r\n        }\r\n    }\r\n\r\n    if(!flag){\r\n        return \"等待其他人会签完成\";\r\n    }\r\n\r\n\r\n    let nextNode = flowContext.nodeMap[edge.targetNodeId];\r\n    let context = {\r\n        obj:obj,\r\n        name:flow_instance.name\r\n    };\r\n\r\n    let nextNodeData = getNextNode(nextNode,flowContext,context,edge);\r\n    let nextNode = nextNodeData.node;\r\n    let nextNodeEdge = nextNodeData.edge;\r\n\r\n    if(task.edge_id != nextNodeData.edgeIds){\r\n        task.edge_id = nextNodeData.edgeIds;\r\n        task.edge_id = nextNodeData.edgeNames;\r\n\r\n        saveOrUpdate(\'jqp_flow_instance_task\',task);\r\n    }\r\n    log.info(\"更新状态:{}\",nextNodeEdge);\r\n    //更新状态\r\n    if(nextNodeEdge && not_blank(nextNodeEdge.properties.status)){\r\n        obj[flow.status_field] = nextNodeEdge.properties.status;\r\n        saveOrUpdate(flow.table_name,obj);\r\n    }\r\n\r\n    if(nextNode == null){\r\n        //流程结束\r\n        flow_instance.end_time = now();\r\n        flow_instance.current_task_id = null;\r\n        flow_instance.current_task_name = null;\r\n        saveOrUpdate(\"jqp_flow_instance\",flow_instance,context);\r\n    }else{\r\n        createNextTask(nextNode,flow_instance);\r\n    }\r\n});\r\n\r\n\r\nreturn \"ok\"'),('magic-api/api/admin/流程/审核记录.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"e147626a5b1f45449b65ad364f9aff1a\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"be084bec4cdf44d0a598edaf5f56b692\",\r\n  \"name\" : \"审核记录\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720063862423,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/records/{table_name}/{ref_id}\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"table_name\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"ref_id\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nlet page = db.page(\"\"\"\r\n    SELECT\r\n	t.start_time,\r\n	t.end_time,\r\n	t.task_name,\r\n	u.name,\r\n	t.edge_name,\r\n	t.files,\r\n	t.imgs,\r\n	t.remark\r\n	\r\nFROM `jqp_flow_instance_task` t \r\nleft join jqp_user u on u.id = t.audit_user_id \r\nleft join jqp_flow_instance i on i.id = t.flow_instance_id\r\nleft join jqp_flow f on f.id = i.flow_id \r\n\r\nwhere t.end_time is not null \r\nand f.table_name = #{table_name}\r\nand i.ref_id = #{ref_id}\r\n\r\norder by t.end_time desc\r\n\"\"\");\r\n\r\nreturn {\r\n    items:page.list || []\r\n}'),('magic-api/api/admin/流程/查询.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"copy1719555811608d92134\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"be084bec4cdf44d0a598edaf5f56b692\",\r\n  \"name\" : \"查询\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1719555849314,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/query\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nlet page = db.page(\"\"\"\r\n    select  \r\n        *\r\n    from jqp_flow f\r\n\"\"\",body.perPage,(body.page-1)*body.perPage);\r\n\r\nreturn {\r\n    total:page.total,\r\n    items:page.list || []\r\n}'),('magic-api/api/admin/流程/查询任务.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"3b513e98d0c4408c88154ccfe21f7a9a\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"be084bec4cdf44d0a598edaf5f56b692\",\r\n  \"name\" : \"查询任务\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720401988133,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/queryTask\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"{\\r\\n    \\\"perPage\\\":10,\\r\\n    \\\"page\\\":1\\r\\n}\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : {\r\n    \"name\" : \"root\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"perPage\",\r\n      \"value\" : \"10\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"10\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"page\",\r\n      \"value\" : \"1\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"1\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  },\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'@/session/getUser\' as getUser;\r\nimport log;\r\n\r\nlet userId = getUser();\r\n\r\nlet adminCount = db.selectInt(\"\"\"\r\n    select count(*) from jqp_user u \r\n    left join jqp_role r on FIND_IN_SET(r.id,u.role_ids) > 0\r\n    where u.id = #{userId}\r\n    and r.code = \'admin\'\r\n\"\"\");\r\nlet whereSql = \"\";\r\n//log.info(\"userId:{}, count :{}\",userId,adminCount);\r\nif(adminCount != null && adminCount > 0){\r\n\r\n}else{\r\n    whereSql = \" and FIND_IN_SET(#{userId},t.candidate_user_ids) > 0  \"\r\n}\r\n\r\nlet page = db.page(`\r\n    select \r\n        f.table_name,\r\n        f.id flow_id,\r\n        f.name flow_name,\r\n        i.id flow_instance_id,\r\n        i.name flow_instance_name,\r\n        t.id,\r\n        t.task_name,\r\n        t.edge_name,\r\n        t.start_time,\r\n        t.end_time,\r\n        t.jointly_sign_complete_time,\r\n        i.ref_id,\r\n        case \r\n            when t.page_code is null or t.page_code = \'\'\r\n                then f.page_code\r\n            else t.page_code\r\n        end page_code,\r\n        t.files,\r\n        t.imgs,\r\n        t.remark\r\n\r\n    from jqp_flow_instance_task t \r\n    left join jqp_flow_instance i on i.id = t.flow_instance_id\r\n    left join jqp_flow f on f.id = i.flow_id \r\n\r\n    where \r\n    1=1 \r\n    \r\n    ${whereSql}\r\n    \r\n    order by t.start_time desc ,t.id desc \r\n`,body.perPage,(body.page-1)*body.perPage);\r\n\r\nreturn {\r\n    total:page.total,\r\n    items:page.list || []\r\n}'),('magic-api/api/admin/流程/流程详情.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"f21226ae60a9434da8eeeae35d68a1cb\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"be084bec4cdf44d0a598edaf5f56b692\",\r\n  \"name\" : \"流程详情\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1719996766753,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getFlowDetail\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ {\r\n    \"name\" : \"flowId\",\r\n    \"value\" : null,\r\n    \"description\" : \"流程id\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"flowInstanceId\",\r\n    \"value\" : null,\r\n    \"description\" : \"流程实例id\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.json.JSONUtil\r\nimport magic;\r\nimport \'@/flow/getFlowContext\' as getFlowContext;\r\nimport log;\r\nlet flow = db.selectOne(\"select * from jqp_flow where id = #{flowId}\");\r\nlet flowContext = getFlowContext(flow.graph_data);\r\nlet resp = {\r\n    readOnly:false,\r\n    showProperties:true,\r\n    graphData:not_blank(flow.graph_data) ?  JSONUtil.parseObj(flow.graph_data) :{},\r\n    statusOptions:magic.execute(\"get\",\"/admin/jqpDic/options/{code}\",{\r\n        code:flow.status_dic\r\n    })\r\n};\r\nif(not_blank(flowInstanceId)){\r\n    resp.readOnly = true;\r\n    resp.showProperties = false;\r\n\r\n    let flowInstance = db.selectOne(\"select * from jqp_flow_instance where id = #{flowInstanceId}\");\r\n    let tasks = db.select(\"select * from jqp_flow_instance_task where flow_instance_id = #{flowInstanceId}\");\r\n    let currentTask = tasks.filter(item->item.id == flowInstance.current_task_id);\r\n\r\n    //log.info(\"currentTask:{}\",currentTask);\r\n    //设置当前节点/流转\r\n    let currentNode = null;\r\n    let currentEdgeIds = [];\r\n    if(currentTask == null){\r\n        currentTask = flowContext.endNode;\r\n    }else{\r\n        currentNode = flowContext.nodeMap[currentTask.task_id];\r\n    }\r\n    //设置经过的节点/流转\r\n    let activeNodes = [];\r\n    let activeEdges = [];\r\n    for(index,task in tasks){\r\n        activeNodes.push(task.task_id);\r\n        if(task.edge_id){\r\n\r\n            let arr = task.edge_id.split(\",\");\r\n            for(_idx,eid in arr){\r\n                activeEdges.push(eid);\r\n            }\r\n            \r\n        }\r\n    }\r\n    for(index,node in resp.graphData.nodes){\r\n        if(activeNodes.contains(node.id)){\r\n            node.properties.active = \"true\";\r\n        }\r\n\r\n        if(currentNode != null && node.id == currentNode.id){\r\n            node.properties.current = \"true\";\r\n            currentEdgeIds = flowContext.edgeMap[node.id].map(item->item.id);\r\n        }\r\n    }\r\n    for(index,edge in resp.graphData.edges){\r\n        if(activeEdges.contains(edge.id)){\r\n            edge.properties.active = \"true\";\r\n        }\r\n        if(currentEdgeIds.contains(edge.id)){\r\n            edge.properties.current = \"true\";\r\n        }\r\n    }\r\n\r\n}\r\n\r\nreturn resp;'),('magic-api/api/admin/流程/获取下一步流转.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"7a3619f508c24a97a25526b57ff39b60\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"be084bec4cdf44d0a598edaf5f56b692\",\r\n  \"name\" : \"获取下一步流转\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720056911902,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getNextEdges/{taskId}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"taskId\",\r\n    \"value\" : \"1\",\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": {\\n        \\\"taskId\\\": \\\"1808050480515362816\\\",\\n        \\\"edges\\\": [{\\n            \\\"id\\\": \\\"Flow_34sb22l\\\",\\n            \\\"name\\\": \\\"审核通过\\\"\\n        }, {\\n            \\\"id\\\": \\\"Flow_1u0960f\\\",\\n            \\\"name\\\": \\\"审核不通过\\\"\\n        }]\\n    }\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Object\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ {\r\n        \"name\" : \"taskId\",\r\n        \"value\" : \"1808050480515362816\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"String\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ ]\r\n      }, {\r\n        \"name\" : \"edges\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Array\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"id\",\r\n            \"value\" : \"Flow_34sb22l\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"name\",\r\n            \"value\" : \"审核通过\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          } ]\r\n        } ]\r\n      } ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport \'@/flow/getFlowContext\' as getFlowContext;\r\n\r\nlet task = db.selectOne(\"select * from jqp_flow_instance_task where id = #{taskId}\")\r\nlet flow_instance = db.selectOne(\"select * from jqp_flow_instance where id = #{task.flow_instance_id}\")\r\nlet flow = db.selectOne(\"select * from jqp_flow where id = #{flow_instance.flow_id}\")\r\nlet flowContext = getFlowContext(flow.graph_data);\r\nlet edges = flowContext.edgeMap[task.task_id].map(item=>{\r\n    value:item.id,\r\n    label:item.text.value\r\n});\r\n\r\nreturn edges'),('magic-api/api/admin/测试订单/', 'this is directory'),('magic-api/api/admin/测试订单/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"3a503cbce42a4b0ea524aefbc48c636b\",\r\n  \"name\" : \"测试订单\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/jqpTestOrder\",\r\n  \"createTime\" : 1719908892903,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/测试订单/查询.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"3a3da5b1bb524160bbc6631b3c7c5e45\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"3a503cbce42a4b0ea524aefbc48c636b\",\r\n  \"name\" : \"查询\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720063625623,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/query\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"{\\r\\n    \\\"perPage\\\":10,\\r\\n    \\\"page\\\":1,\\r\\n    \\\"op\\\":\\\"\\\"\\r\\n}\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : {\r\n    \"name\" : \"root\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"perPage\",\r\n      \"value\" : \"10\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"10\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"page\",\r\n      \"value\" : \"1\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"1\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"op\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  },\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nlet page = db.page(\"\"\"\r\nselect r.*,\'jqp_test_order\' table_name,r.id ref_id from jqp_test_order r\r\nwhere 1=1 \r\n?{body.order_code, and order_code like concat(\'%\',#{body.order_code},\'%\') }\r\n?{body.op, and find_in_set(id,#{body.value})>0}\r\n?{body.orderBy, order by ${body.orderBy} ${body.orderDir}}\r\n\r\n \"\"\",body.perPage,(body.page-1)*body.perPage);\r\n\r\nreturn {\r\n    total:page.total,\r\n    items:page.list || []\r\n}'),('magic-api/api/admin/用户/', 'this is directory'),('magic-api/api/admin/用户/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"1da839b1401e4a908994d2e2f80c6e62\",\r\n  \"name\" : \"用户\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/jqpUser\",\r\n  \"createTime\" : 1717033653837,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/用户/保存.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"4ed128131d944fca937dd9121adb4645\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1da839b1401e4a908994d2e2f80c6e62\",\r\n  \"name\" : \"保存\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720746921915,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.crypto.digest.MD5\r\nimport cn.hutool.crypto.SecureUtil\r\nimport \'@/db/saveOrUpdate\' as saveOrUpdate;\r\nimport cn.hutool.core.util.IdUtil\r\nif(not_blank(body.password)){\r\n    let md5 = new MD5()\r\n    body.salt = IdUtil.getSnowflake().nextId();\r\n    body.password = md5.digestHex(body.salt+body.password);\r\n}\r\n\r\n\r\n\r\nreturn saveOrUpdate(\'jqp_user\',body)'),('magic-api/api/admin/用户/图片验证码.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"85fcc2077b5f4c99ba3913907f002edd\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1da839b1401e4a908994d2e2f80c6e62\",\r\n  \"name\" : \"图片验证码\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717480637234,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/captcha.png\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.captcha.generator.CodeGenerator\r\nimport cn.hutool.captcha.AbstractCaptcha\r\nimport cn.hutool.captcha.CaptchaUtil\r\nimport request\r\nimport response\r\n\r\nAbstractCaptcha captcha = CaptchaUtil.createShearCaptcha(150,37,4,3);\r\n\r\nlet code = captcha.getCode();\r\nlet captchaData = {\r\n    time:System.currentTimeMillis()+5L*60*1000,\r\n    code:code\r\n};\r\nrequest.get().getSession().setAttribute(\"captcha\",captchaData);\r\nresponse.setHeader(\"Content-type\",\"image/png\");\r\n\r\ncaptcha.write(response.getOutputStream())\r\n\r\nreturn response.end();'),('magic-api/api/admin/用户/查询.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"d8406b1ad2a44775b0cdafe7e535a3b0\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1da839b1401e4a908994d2e2f80c6e62\",\r\n  \"name\" : \"查询\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717124610183,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/query\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nlet page = db.page(\"\"\"\r\n    select  \r\n        u.id,\r\n        u.name,\r\n        u.account,\r\n        u.role_ids\r\n    from jqp_user u\r\n\"\"\",body.perPage,(body.page-1)*body.perPage);\r\n\r\nreturn {\r\n    total:page.total,\r\n    items:page.list || []\r\n}'),('magic-api/api/admin/用户/登录.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"79c9058577b94f8babe12942b541b8b5\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1da839b1401e4a908994d2e2f80c6e62\",\r\n  \"name\" : \"登录\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717483086472,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/login\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.crypto.digest.MD5\r\nimport request;\r\nimport \'@/session/setUser\' as setUser;\r\nimport log\r\n\r\n\r\nlet captchaData = request.get().getSession().getAttribute(\"captcha\");\r\n\r\nlog.info(\"captchaData:{}\",captchaData);\r\nif(captchaData == null){\r\n    exit 9999,\"图片验证码错误\";\r\n}\r\nif(System.currentTimeMillis() > captchaData.time){\r\n    exit 9999,\"图片验证码过期2\";\r\n}\r\n\r\nlet img_code = body.img_code;\r\n\r\nif(!captchaData.code.equalsIgnoreCase(img_code)){\r\n    exit 9999,\"图片验证码错误\";\r\n}\r\n\r\n\r\nlet user = db.table(\'jqp_user\').where().eq(\'account\',body.account).selectOne();\r\nif(is_null(user)){\r\n    exit 9999,\"用户名/密码错误\";\r\n}\r\n\r\nlet md5 = new MD5()\r\nif(md5.digestHex(user.salt+body.password) != user.password){\r\n    exit 9999,\"用户名/密码错误\";\r\n}\r\nsetUser(user);\r\nreturn \'登录成功\''),('magic-api/api/admin/用户/获取用户session.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"f52c82df0e34458e82d3c39f8a3e783c\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1da839b1401e4a908994d2e2f80c6e62\",\r\n  \"name\" : \"获取用户session\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718330759648,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getUserSession\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ {\r\n    \"name\" : \"menuType\",\r\n    \"value\" : \"pc\",\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : \"pc\",\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": {\\n        \\\"user\\\": {\\n            \\\"id\\\": \\\"1796000120376389632\\\",\\n            \\\"name\\\": \\\"管理员\\\"\\n        },\\n        \\\"roles\\\": [{\\n            \\\"code\\\": \\\"admin\\\"\\n        }, {\\n            \\\"code\\\": \\\"test\\\"\\n        }]\\n    }\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Object\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ {\r\n        \"name\" : \"user\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Object\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"id\",\r\n          \"value\" : \"1796000120376389632\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"name\",\r\n          \"value\" : \"管理员\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        } ]\r\n      }, {\r\n        \"name\" : \"roles\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"String\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"code\",\r\n            \"value\" : \"admin\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          } ]\r\n        } ]\r\n      } ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport \'@/session/getUser\' as getUser;\r\nimport \'@/session/getUserSession\' as getUserSession;\r\n\r\nlet userId = getUser();\r\nlet user = db.selectOne(\"select id,name from jqp_user where id = #{userId}\")\r\nlet roles = db.select(\"\"\"\r\n    select r.code from jqp_user u,jqp_role r \r\n    where u.id = #{userId}\r\n    and find_in_set(r.id,u.role_ids) > 0 \r\n\"\"\");\r\n\r\nreturn {\r\n    user:user,\r\n    roles:(roles || []).map(item->item.code),\r\n    buttons:getUserSession()[menuType].buttons\r\n}'),('magic-api/api/admin/用户/退出登录.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"6b20c64d73224522a0f9b9518de052bd\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1da839b1401e4a908994d2e2f80c6e62\",\r\n  \"name\" : \"退出登录\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717137217484,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/logout\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'@/session/setUser\' as setUser;\r\nimport response;\r\nsetUser(null);\r\n\r\nreturn \'success\''),('magic-api/api/admin/菜单/', 'this is directory'),('magic-api/api/admin/菜单/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"71c8f5e488134fcca17610e3fa9ab10a\",\r\n  \"name\" : \"菜单\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/jqpMenu\",\r\n  \"createTime\" : 1716530689565,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/菜单/查询.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"copy1716530728247d43090\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"71c8f5e488134fcca17610e3fa9ab10a\",\r\n  \"name\" : \"查询\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718268360355,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/query\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ {\r\n    \"name\" : \"treeId\",\r\n    \"value\" : \"1793896152393310208\",\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"{\\r\\n    \\\"perPage\\\":10,\\r\\n    \\\"page\\\":1\\r\\n}\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": {\\n        \\\"items\\\": [{\\n            \\\"id\\\": \\\"1794983115506450432\\\",\\n            \\\"name\\\": \\\"系统配置\\\",\\n            \\\"url\\\": null,\\n            \\\"parent_id\\\": null,\\n            \\\"seq\\\": 10,\\n            \\\"auth_code\\\": \\\"\\\",\\n            \\\"urls\\\": null,\\n            \\\"is_button\\\": \\\"no\\\",\\n            \\\"children\\\": [{\\n                \\\"id\\\": \\\"1794983252077182976\\\",\\n                \\\"name\\\": \\\"magic-api\\\",\\n                \\\"url\\\": \\\"/page/magic-api\\\",\\n                \\\"parent_id\\\": \\\"1794983115506450432\\\",\\n                \\\"seq\\\": 10,\\n                \\\"auth_code\\\": \\\"\\\",\\n                \\\"urls\\\": \\\"/magic/web/**\\\",\\n                \\\"is_button\\\": \\\"no\\\",\\n                \\\"children\\\": []\\n            }, {\\n                \\\"id\\\": \\\"1794983339717165056\\\",\\n                \\\"name\\\": \\\"页面配置\\\",\\n                \\\"url\\\": \\\"/page/page\\\",\\n                \\\"parent_id\\\": \\\"1794983115506450432\\\",\\n                \\\"seq\\\": 20,\\n                \\\"auth_code\\\": \\\"\\\",\\n                \\\"urls\\\": \\\"/page/*\\\\n/html/*\\\\n/admin/jqpPage/*\\\",\\n                \\\"is_button\\\": \\\"no\\\",\\n                \\\"children\\\": []\\n            }, {\\n                \\\"id\\\": \\\"1794983404615630848\\\",\\n                \\\"name\\\": \\\"菜单配置\\\",\\n                \\\"url\\\": \\\"/page/menu\\\",\\n                \\\"parent_id\\\": \\\"1794983115506450432\\\",\\n                \\\"seq\\\": 30,\\n                \\\"auth_code\\\": \\\"\\\",\\n                \\\"urls\\\": \\\"/admin/jqpMenu/*\\\",\\n                \\\"is_button\\\": \\\"no\\\",\\n                \\\"children\\\": []\\n            }]\\n        }, {\\n            \\\"id\\\": \\\"1797461892664856576\\\",\\n            \\\"name\\\": \\\"查询\\\",\\n            \\\"url\\\": null,\\n            \\\"parent_id\\\": \\\"1795361831097131008\\\",\\n            \\\"seq\\\": 10,\\n            \\\"auth_code\\\": \\\"jqpMenuQuery\\\",\\n            \\\"urls\\\": \\\"/admin/jqpMenu/query\\\",\\n            \\\"is_button\\\": \\\"yes\\\",\\n            \\\"children\\\": []\\n        }, {\\n            \\\"id\\\": \\\"1795999099986112512\\\",\\n            \\\"name\\\": \\\"组织机构\\\",\\n            \\\"url\\\": null,\\n            \\\"parent_id\\\": null,\\n            \\\"seq\\\": 20,\\n            \\\"auth_code\\\": \\\"\\\",\\n            \\\"urls\\\": null,\\n            \\\"is_button\\\": \\\"no\\\",\\n            \\\"children\\\": [{\\n                \\\"id\\\": \\\"1796021518184476672\\\",\\n                \\\"name\\\": \\\"角色管理\\\",\\n                \\\"url\\\": \\\"/page/role\\\",\\n                \\\"parent_id\\\": \\\"1795999099986112512\\\",\\n                \\\"seq\\\": 8,\\n                \\\"auth_code\\\": \\\"\\\",\\n                \\\"urls\\\": null,\\n                \\\"is_button\\\": \\\"no\\\",\\n                \\\"children\\\": []\\n            }, {\\n                \\\"id\\\": \\\"1795999158010114048\\\",\\n                \\\"name\\\": \\\"用户管理\\\",\\n                \\\"url\\\": \\\"/page/user\\\",\\n                \\\"parent_id\\\": \\\"1795999099986112512\\\",\\n                \\\"seq\\\": 10,\\n                \\\"auth_code\\\": \\\"\\\",\\n                \\\"urls\\\": null,\\n                \\\"is_button\\\": \\\"no\\\",\\n                \\\"children\\\": []\\n            }]\\n        }, {\\n            \\\"id\\\": \\\"1797462245183524864\\\",\\n            \\\"name\\\": \\\"编辑\\\",\\n            \\\"url\\\": null,\\n            \\\"parent_id\\\": \\\"1795361831097131008\\\",\\n            \\\"seq\\\": 20,\\n            \\\"auth_code\\\": \\\"jqpMenuEdit\\\",\\n            \\\"urls\\\": \\\"/admin/common/jqp_menu/save\\\",\\n            \\\"is_button\\\": \\\"yes\\\",\\n            \\\"children\\\": []\\n        }, {\\n            \\\"id\\\": \\\"1797463060262621184\\\",\\n            \\\"name\\\": \\\"删除\\\",\\n            \\\"url\\\": null,\\n            \\\"parent_id\\\": \\\"1795361831097131008\\\",\\n            \\\"seq\\\": 30,\\n            \\\"auth_code\\\": \\\"jqpMenuDelete\\\",\\n            \\\"urls\\\": \\\"/admin/common/jqp_menu/delete/*\\\",\\n            \\\"is_button\\\": \\\"yes\\\",\\n            \\\"children\\\": []\\n        }]\\n    }\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : {\r\n    \"name\" : \"root\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"perPage\",\r\n      \"value\" : \"10\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"page\",\r\n      \"value\" : \"1\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  },\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Object\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ {\r\n        \"name\" : \"items\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Array\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"id\",\r\n            \"value\" : \"1794983115506450432\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"name\",\r\n            \"value\" : \"系统配置\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"url\",\r\n            \"value\" : \"null\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Object\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"parent_id\",\r\n            \"value\" : \"null\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Object\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"seq\",\r\n            \"value\" : \"10\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Integer\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"auth_code\",\r\n            \"value\" : \"\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"urls\",\r\n            \"value\" : \"null\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Object\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"is_button\",\r\n            \"value\" : \"no\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"children\",\r\n            \"value\" : \"\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Array\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ {\r\n              \"name\" : \"\",\r\n              \"value\" : \"\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"Object\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ {\r\n                \"name\" : \"id\",\r\n                \"value\" : \"1794983252077182976\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"String\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              }, {\r\n                \"name\" : \"name\",\r\n                \"value\" : \"magic-api\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"String\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              }, {\r\n                \"name\" : \"url\",\r\n                \"value\" : \"/page/magic-api\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"String\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              }, {\r\n                \"name\" : \"parent_id\",\r\n                \"value\" : \"1794983115506450432\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"String\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              }, {\r\n                \"name\" : \"seq\",\r\n                \"value\" : \"10\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"Integer\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              }, {\r\n                \"name\" : \"auth_code\",\r\n                \"value\" : \"\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"String\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              }, {\r\n                \"name\" : \"urls\",\r\n                \"value\" : \"/magic/web/**\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"String\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              }, {\r\n                \"name\" : \"is_button\",\r\n                \"value\" : \"no\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"String\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              }, {\r\n                \"name\" : \"children\",\r\n                \"value\" : \"\",\r\n                \"description\" : \"\",\r\n                \"required\" : false,\r\n                \"dataType\" : \"Array\",\r\n                \"type\" : null,\r\n                \"defaultValue\" : null,\r\n                \"validateType\" : \"\",\r\n                \"error\" : \"\",\r\n                \"expression\" : \"\",\r\n                \"children\" : [ ]\r\n              } ]\r\n            } ]\r\n          } ]\r\n        } ]\r\n      } ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport \'@/utils/list_to_tree\' as list_to_tree;\r\n\r\nlet list = db.select(\"\"\"\r\nselect * from jqp_menu\r\nwhere 1=1 \r\n?{body.name, and name like concat(\'%\',#{body.name},\'%\') }\r\n?{body.url, and url like concat(\'%\',#{body.url},\'%\') }\r\n?{body.menu_type, and menu_type = #{body.menu_type} }\r\n?{body.is_button, and is_button = #{body.is_button} }\r\n\r\n order by seq asc\"\"\");\r\n\r\nreturn {\r\n    items:list_to_tree(list || [],treeId)\r\n}'),('magic-api/api/admin/菜单/用户菜单.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"copy1716792631644d36120\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"71c8f5e488134fcca17610e3fa9ab10a\",\r\n  \"name\" : \"用户菜单\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718331317834,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/userMenu\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"{\\r\\n    \\\"menuType\\\":\\\"pc\\\"\\r\\n}\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": [{\\n        \\\"id\\\": \\\"1794983115506450432\\\",\\n        \\\"name\\\": \\\"系统配置\\\",\\n        \\\"url\\\": null,\\n        \\\"parent_id\\\": null,\\n        \\\"seq\\\": 10,\\n        \\\"auth_code\\\": \\\"\\\",\\n        \\\"urls\\\": null,\\n        \\\"is_button\\\": \\\"no\\\",\\n        \\\"children\\\": [{\\n            \\\"id\\\": \\\"1794983252077182976\\\",\\n            \\\"name\\\": \\\"magic-api\\\",\\n            \\\"url\\\": \\\"/page/magic-api\\\",\\n            \\\"parent_id\\\": \\\"1794983115506450432\\\",\\n            \\\"seq\\\": 10,\\n            \\\"auth_code\\\": \\\"\\\",\\n            \\\"urls\\\": \\\"/magic/web/**\\\",\\n            \\\"is_button\\\": \\\"no\\\",\\n            \\\"children\\\": [],\\n            \\\"label\\\": \\\"magic-api\\\"\\n        }, {\\n            \\\"id\\\": \\\"1794983339717165056\\\",\\n            \\\"name\\\": \\\"页面配置\\\",\\n            \\\"url\\\": \\\"/page/page\\\",\\n            \\\"parent_id\\\": \\\"1794983115506450432\\\",\\n            \\\"seq\\\": 20,\\n            \\\"auth_code\\\": \\\"\\\",\\n            \\\"urls\\\": \\\"/page/*\\\\n/html/*\\\\n/admin/jqpPage/*\\\",\\n            \\\"is_button\\\": \\\"no\\\",\\n            \\\"children\\\": [],\\n            \\\"label\\\": \\\"页面配置\\\"\\n        }, {\\n            \\\"id\\\": \\\"1794983404615630848\\\",\\n            \\\"name\\\": \\\"菜单配置\\\",\\n            \\\"url\\\": \\\"/page/menu\\\",\\n            \\\"parent_id\\\": \\\"1794983115506450432\\\",\\n            \\\"seq\\\": 30,\\n            \\\"auth_code\\\": \\\"\\\",\\n            \\\"urls\\\": \\\"/admin/jqpMenu/*\\\",\\n            \\\"is_button\\\": \\\"no\\\",\\n            \\\"children\\\": [],\\n            \\\"label\\\": \\\"菜单配置\\\"\\n        }, {\\n            \\\"id\\\": \\\"1795361831097131008\\\",\\n            \\\"name\\\": \\\"数据字典\\\",\\n            \\\"url\\\": \\\"/page/dic\\\",\\n            \\\"parent_id\\\": \\\"1794983115506450432\\\",\\n            \\\"seq\\\": 40,\\n            \\\"auth_code\\\": \\\"\\\",\\n            \\\"urls\\\": null,\\n            \\\"is_button\\\": \\\"no\\\",\\n            \\\"children\\\": [],\\n            \\\"label\\\": \\\"数据字典\\\"\\n        }],\\n        \\\"label\\\": \\\"系统配置\\\"\\n    }, {\\n        \\\"id\\\": \\\"1795999099986112512\\\",\\n        \\\"name\\\": \\\"组织机构\\\",\\n        \\\"url\\\": null,\\n        \\\"parent_id\\\": null,\\n        \\\"seq\\\": 20,\\n        \\\"auth_code\\\": \\\"\\\",\\n        \\\"urls\\\": null,\\n        \\\"is_button\\\": \\\"no\\\",\\n        \\\"children\\\": [{\\n            \\\"id\\\": \\\"1795999158010114048\\\",\\n            \\\"name\\\": \\\"用户管理\\\",\\n            \\\"url\\\": \\\"/page/user\\\",\\n            \\\"parent_id\\\": \\\"1795999099986112512\\\",\\n            \\\"seq\\\": 10,\\n            \\\"auth_code\\\": \\\"\\\",\\n            \\\"urls\\\": null,\\n            \\\"is_button\\\": \\\"no\\\",\\n            \\\"children\\\": [],\\n            \\\"label\\\": \\\"用户管理\\\"\\n        }, {\\n            \\\"id\\\": \\\"1796021518184476672\\\",\\n            \\\"name\\\": \\\"角色管理\\\",\\n            \\\"url\\\": \\\"/page/role\\\",\\n            \\\"parent_id\\\": \\\"1795999099986112512\\\",\\n            \\\"seq\\\": 8,\\n            \\\"auth_code\\\": \\\"\\\",\\n            \\\"urls\\\": null,\\n            \\\"is_button\\\": \\\"no\\\",\\n            \\\"children\\\": [],\\n            \\\"label\\\": \\\"角色管理\\\"\\n        }],\\n        \\\"label\\\": \\\"组织机构\\\"\\n    }]\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"menuType\",\r\n      \"value\" : \"pc\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"pc\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  },\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Array\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ {\r\n        \"name\" : \"\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Object\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"id\",\r\n          \"value\" : \"1794983115506450432\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"name\",\r\n          \"value\" : \"系统配置\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"url\",\r\n          \"value\" : \"null\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"parent_id\",\r\n          \"value\" : \"null\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"seq\",\r\n          \"value\" : \"10\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Integer\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"auth_code\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"urls\",\r\n          \"value\" : \"null\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"is_button\",\r\n          \"value\" : \"no\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        }, {\r\n          \"name\" : \"children\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Array\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"\",\r\n            \"value\" : \"\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Object\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ {\r\n              \"name\" : \"id\",\r\n              \"value\" : \"1794983252077182976\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"String\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"name\",\r\n              \"value\" : \"magic-api\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"String\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"url\",\r\n              \"value\" : \"/page/magic-api\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"String\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"parent_id\",\r\n              \"value\" : \"1794983115506450432\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"String\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"seq\",\r\n              \"value\" : \"10\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"Integer\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"auth_code\",\r\n              \"value\" : \"\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"String\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"urls\",\r\n              \"value\" : \"/magic/web/**\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"String\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"is_button\",\r\n              \"value\" : \"no\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"String\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"children\",\r\n              \"value\" : \"\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"Array\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            }, {\r\n              \"name\" : \"label\",\r\n              \"value\" : \"magic-api\",\r\n              \"description\" : \"\",\r\n              \"required\" : false,\r\n              \"dataType\" : \"String\",\r\n              \"type\" : null,\r\n              \"defaultValue\" : null,\r\n              \"validateType\" : \"\",\r\n              \"error\" : \"\",\r\n              \"expression\" : \"\",\r\n              \"children\" : [ ]\r\n            } ]\r\n          } ]\r\n        }, {\r\n          \"name\" : \"label\",\r\n          \"value\" : \"系统配置\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"String\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ ]\r\n        } ]\r\n      } ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport request;\r\nimport \'@/session/getUserSession\' as getUserSession;\r\n\r\n\r\nreturn getUserSession()[body.menuType].menus;'),('magic-api/api/admin/角色/', 'this is directory'),('magic-api/api/admin/角色/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"9553d6c7a52d4470b11fc0883b78786d\",\r\n  \"name\" : \"角色\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/jqpRole\",\r\n  \"createTime\" : 1717039544683,\r\n  \"updateTime\" : 1717039548330,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/角色/查询.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"9029059f9c8c4934b2ad97280d14b5b9\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"9553d6c7a52d4470b11fc0883b78786d\",\r\n  \"name\" : \"查询\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717124938328,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/query\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"{\\r\\n    \\\"perPage\\\":10,\\r\\n    \\\"page\\\":1\\r\\n}\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"perPage\",\r\n      \"value\" : \"10\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"10\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"page\",\r\n      \"value\" : \"1\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"1\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  },\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nlet page = db.page(\"\"\"\r\n    select  \r\n        *\r\n    from jqp_role u\r\n\"\"\",body.perPage,(body.page-1)*body.perPage);\r\n\r\nreturn {\r\n    total:page.total,\r\n    items:page.list || []\r\n}'),('magic-api/api/admin/页面/', 'this is directory'),('magic-api/api/admin/页面/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"4cb2b542ae9d4516bc040a066a243f7e\",\r\n  \"name\" : \"页面\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"47dc323d68af4fb4836d625d88f01bd4\",\r\n  \"path\" : \"/jqpPage\",\r\n  \"createTime\" : 1716515222192,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/admin/页面/查询.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"fdb74687c0084e3cba051a75f4120bd3\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"4cb2b542ae9d4516bc040a066a243f7e\",\r\n  \"name\" : \"查询\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1719295824522,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/query\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"{\\r\\n    \\\"perPage\\\":10,\\r\\n    \\\"page\\\":1,\\r\\n    \\\"op\\\":\\\"\\\"\\r\\n}\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": {\\n        \\\"total\\\": 1,\\n        \\\"items\\\": [{\\n            \\\"id\\\": 1,\\n            \\\"code\\\": \\\"magic-api\\\",\\n            \\\"name\\\": \\\"magic-api\\\",\\n            \\\"schema\\\": null\\n        }]\\n    }\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"perPage\",\r\n      \"value\" : \"10\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"10\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"page\",\r\n      \"value\" : \"1\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : \"1\",\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"op\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    } ]\r\n  },\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Object\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ {\r\n        \"name\" : \"total\",\r\n        \"value\" : \"1\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Integer\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ ]\r\n      }, {\r\n        \"name\" : \"items\",\r\n        \"value\" : \"\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"Array\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ {\r\n          \"name\" : \"\",\r\n          \"value\" : \"\",\r\n          \"description\" : \"\",\r\n          \"required\" : false,\r\n          \"dataType\" : \"Object\",\r\n          \"type\" : null,\r\n          \"defaultValue\" : null,\r\n          \"validateType\" : \"\",\r\n          \"error\" : \"\",\r\n          \"expression\" : \"\",\r\n          \"children\" : [ {\r\n            \"name\" : \"id\",\r\n            \"value\" : \"1\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Integer\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"code\",\r\n            \"value\" : \"magic-api\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"name\",\r\n            \"value\" : \"magic-api\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"String\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          }, {\r\n            \"name\" : \"schema\",\r\n            \"value\" : \"null\",\r\n            \"description\" : \"\",\r\n            \"required\" : false,\r\n            \"dataType\" : \"Object\",\r\n            \"type\" : null,\r\n            \"defaultValue\" : null,\r\n            \"validateType\" : \"\",\r\n            \"error\" : \"\",\r\n            \"expression\" : \"\",\r\n            \"children\" : [ ]\r\n          } ]\r\n        } ]\r\n      } ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nlet page = db.page(\"\"\"\r\nselect * from jqp_page\r\nwhere 1=1 \r\n?{body.name, and name like concat(\'%\',#{body.name},\'%\') }\r\n?{body.code, and code like concat(\'%\',#{body.code},\'%\') }\r\n?{body.op, and find_in_set(id,#{body.value})>0}\r\n?{body.orderBy, order by ${body.orderBy} ${body.orderDir}}\r\n\r\n \"\"\",body.perPage,(body.page-1)*body.perPage);\r\n\r\nreturn {\r\n    total:page.total,\r\n    items:page.list || []\r\n}'),('magic-api/api/admin/页面/获取页面.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"367dafdb2429461ba7d32e0763a70050\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"4cb2b542ae9d4516bc040a066a243f7e\",\r\n  \"name\" : \"获取页面\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1716521382863,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/get/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"id\",\r\n    \"value\" : \"1\",\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : \"{\\n    \\\"status\\\": 0,\\n    \\\"msg\\\": \\\"success\\\",\\n    \\\"data\\\": {\\n        \\\"type\\\": \\\"page\\\",\\n        \\\"body\\\": \\\"hello\\\",\\n        \\\"title\\\": \\\"示例界面\\\"\\n    }\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : {\r\n    \"name\" : \"\",\r\n    \"value\" : \"\",\r\n    \"description\" : \"\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"Object\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : \"\",\r\n    \"error\" : \"\",\r\n    \"expression\" : \"\",\r\n    \"children\" : [ {\r\n      \"name\" : \"status\",\r\n      \"value\" : \"0\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Integer\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"msg\",\r\n      \"value\" : \"success\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"String\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ ]\r\n    }, {\r\n      \"name\" : \"data\",\r\n      \"value\" : \"\",\r\n      \"description\" : \"\",\r\n      \"required\" : false,\r\n      \"dataType\" : \"Object\",\r\n      \"type\" : null,\r\n      \"defaultValue\" : null,\r\n      \"validateType\" : \"\",\r\n      \"error\" : \"\",\r\n      \"expression\" : \"\",\r\n      \"children\" : [ {\r\n        \"name\" : \"type\",\r\n        \"value\" : \"page\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"String\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ ]\r\n      }, {\r\n        \"name\" : \"body\",\r\n        \"value\" : \"hello\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"String\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ ]\r\n      }, {\r\n        \"name\" : \"title\",\r\n        \"value\" : \"示例界面\",\r\n        \"description\" : \"\",\r\n        \"required\" : false,\r\n        \"dataType\" : \"String\",\r\n        \"type\" : null,\r\n        \"defaultValue\" : null,\r\n        \"validateType\" : \"\",\r\n        \"error\" : \"\",\r\n        \"expression\" : \"\",\r\n        \"children\" : [ ]\r\n      } ]\r\n    } ]\r\n  }\r\n}\r\n================================\r\nimport cn.hutool.json.JSONUtil\r\nlet config = db.camel().selectValue(\"select config from jqp_page where id = #{id} \")\r\n\r\nif(is_blank(config)){\r\n    config = {\r\n        type:\"page\",\r\n        body:\"hello\",\r\n        title:\"示例界面\"\r\n    };\r\n}else{\r\n    config = JSONUtil.parseObj(config);\r\n}\r\n\r\nreturn config;'),('magic-api/api/测试/', 'this is directory'),('magic-api/api/测试/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"ec591bb8c69c47cc847d685f2f33d617\",\r\n  \"name\" : \"测试\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"/test\",\r\n  \"createTime\" : 1716862379729,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/测试/测试.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"a3052d6ca57941beb0971e810c99673d\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"ec591bb8c69c47cc847d685f2f33d617\",\r\n  \"name\" : \"测试\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720000594271,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/test\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn \'ok\''),('magic-api/api/系统配置/', 'this is directory'),('magic-api/api/系统配置/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"32d59ad9c9214960a6cc598fe0528de2\",\r\n  \"name\" : \"系统配置\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"/sysConfig\",\r\n  \"createTime\" : 1716863327081,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/系统配置/后台拦截器.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"ae92e97822dd4a7e9f5bbc2a5665da6b\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"32d59ad9c9214960a6cc598fe0528de2\",\r\n  \"name\" : \"后台拦截器\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718330997633,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/adminInterceptor\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport org.springframework.web.util.WebUtils\r\nimport cn.hutool.json.JSONUtil\r\nimport log;\r\nimport request;\r\nimport response;\r\nimport \'@/session/getUser\' as getUser;\r\nimport \'@/session/getUserSession\' as getUserSession;\r\nimport \'@/utils/matchUrl\' as matchUrl;\r\n\r\nlet uri = request.get().getRequestURI();\r\nlet login_user = getUser();\r\n\r\nlet isAjax = !(uri.endsWith(\"/\") || uri.contains(\"/html\"))\r\n\r\nlog.info(\"拦截器:{}\",uri)\r\n\r\n\r\nif(is_null(login_user)){\r\n    if(isAjax){\r\n        response.setHeader(\"content-type\",\"application/json;charset=utf-8\")\r\n        response.getOutputStream().write(JSONUtil.toJsonPrettyStr({\r\n            status:1,\r\n            msg:`需要重新登录`\r\n        }).getBytes(\"utf-8\"))\r\n    }else{\r\n        response.redirect(\"/html/login\")\r\n    }\r\n    \r\n    return false;\r\n}\r\nlet userSession = getUserSession();\r\nlet flag = matchUrl(uri,userSession.pc.urls) || matchUrl(uri,userSession.mobile.urls);\r\n\r\nif(!flag){\r\n    if(isAjax){\r\n        response.setHeader(\"content-type\",\"application/json;charset=utf-8\")\r\n        response.getOutputStream().write(JSONUtil.toJsonPrettyStr({\r\n            status:9999,\r\n            msg:`无[${uri}]权限`\r\n        }).getBytes(\"utf-8\"))\r\n    }\r\n\r\n    log.info(\"无:{}权限\",uri)\r\n    //exit 9,`无[${uri}]权限`\r\n    return false;\r\n}\r\n\r\nreturn true'),('magic-api/api/首页/', 'this is directory'),('magic-api/api/首页/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"1075f43a754545f1b4144a3cce81c19e\",\r\n  \"name\" : \"首页\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"/\",\r\n  \"createTime\" : 1716455473207,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/api/首页/获取html页面.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"a36ef94116f14856ac801587066c91e5\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1075f43a754545f1b4144a3cce81c19e\",\r\n  \"name\" : \"获取html页面\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1716540348174,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/html/{code}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.json.JSONUtil\r\nimport \'@/utils/amis_page\' as amis_page;\r\n\r\nlet config = db.camel().selectValue(\"select config from jqp_page where code = #{code} \")\r\n\r\nif(is_blank(config)){\r\n    config = {\r\n        type:\"page\",\r\n        body:\"hello\",\r\n        title:\"示例界面\"\r\n    };\r\n}else{\r\n    config = JSONUtil.parseObj(config);\r\n}\r\n\r\nreturn amis_page(config);'),('magic-api/api/首页/获取页面配置.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"84ff17897b5f44d4b0ba6c59df46089e\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1075f43a754545f1b4144a3cce81c19e\",\r\n  \"name\" : \"获取页面配置\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1719998454672,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"page/{code}\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ {\r\n    \"name\" : \"code\",\r\n    \"value\" : \"page\",\r\n    \"description\" : null,\r\n    \"required\" : true,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.hutool.json.JSONUtil\r\nlet config = db.camel().selectValue(\"select config from jqp_page where code = #{code} \")\r\n\r\nif(is_blank(config)){\r\n    config = {\r\n        type:\"page\",\r\n        body:\"hello\",\r\n        title:\"示例界面\"\r\n    };\r\n}else{\r\n    config = JSONUtil.parseObj(config);\r\n}\r\n\r\nreturn config;'),('magic-api/api/首页/首页.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"3438bec68065420e9602a14e0568fc5a\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1075f43a754545f1b4144a3cce81c19e\",\r\n  \"name\" : \"首页\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718263095609,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'@/utils/amis_page\' as amis_page;\r\nimport magic;\r\nimport request;\r\nimport log;\r\n\r\nlet userAgent = request.get().getHeader(\"User-Agent\");\r\nlet isMobile = /Mobile|iPhone|iPad|Android|iPod/.test(userAgent);\r\n\r\nlog.info(\"isMobile:{}\",isMobile)\r\n\r\nlet code = isMobile?\"mobileNavigation\" : \"navigation\";\r\n\r\n\r\nreturn magic.execute(\"get\",\"/html/{code}\",{\r\n    code:code\r\n})\r\n'),('magic-api/datasource/', 'this is directory'),('magic-api/function/', 'this is directory'),('magic-api/function/会话/', 'this is directory'),('magic-api/function/会话/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"c8909e0f38c74d11871708d55bcae5c3\",\r\n  \"name\" : \"会话\",\r\n  \"type\" : \"function\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"/session\",\r\n  \"createTime\" : 1717126551857,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/function/会话/公共接口列表.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"f5482e69874c45a9a023998c4e38d209\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"c8909e0f38c74d11871708d55bcae5c3\",\r\n  \"name\" : \"公共接口列表\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717640748081,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/commonUrls\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ ]\r\n}\r\n================================\r\nreturn [\r\n    \"/\",\r\n    \"/admin/jqpDic/options/*\",\r\n    \"/admin/jqpUser/logout\",\r\n    \"/admin/jqpUser/getUserSession\",\r\n    \"/admin/jqpMenu/userMenu\",\r\n    \"/page/index\",\r\n    \"/**\"\r\n]'),('magic-api/function/会话/获取用户.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"ab1b93249ef947b094430e2bce1c70e5\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"c8909e0f38c74d11871708d55bcae5c3\",\r\n  \"name\" : \"获取用户\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717126696918,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getUser\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ ]\r\n}\r\n================================\r\nimport request;\r\n\r\nlet session = request.get().getSession();\r\nlet login_user = session.getAttribute(\"login_user\")\r\n\r\nreturn login_user;'),('magic-api/function/会话/获取用户session.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"8b6dafdd99854feb810af71ce15c821d\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"c8909e0f38c74d11871708d55bcae5c3\",\r\n  \"name\" : \"获取用户session\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717395504783,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getUserSession\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ ]\r\n}\r\n================================\r\nimport request;\r\n\r\nlet userSession = request.get().getSession().getAttribute(\"user_session\")\r\n\r\nreturn userSession;'),('magic-api/function/会话/获取用户权限.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"3f71b9acdb3f4550978add34a75ec9e2\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"c8909e0f38c74d11871708d55bcae5c3\",\r\n  \"name\" : \"获取用户权限\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718331110101,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getUserPermission\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ ]\r\n}\r\n================================\r\nimport \'@/utils/list_to_tree\' as list_to_tree;\r\nimport \'@/utils/tree_field_map\' as tree_field_map;\r\nimport \'@/session/getUser\' as getUser;\r\nimport \'@/session/commonUrls\' as commonUrls;\r\nimport \'@/utils/filter_tree\' as filter_tree;\r\nimport log;\r\n\r\n\r\n\r\n\r\nlet userId = getUser();\r\nlet menuIdsArr = db.select(\"\"\"\r\n    select r.menu_ids from jqp_user u,jqp_role r \r\n    where u.id = #{userId}\r\n    and find_in_set(r.id,u.role_ids) > 0 \r\n\"\"\");\r\nlet menuIds = [];\r\nfor(index,item in (menuIdsArr || [])){\r\n    if(not_blank(item.menu_ids)){\r\n        menuIds.addAll(Arrays.asList(item.menu_ids.split(\",\")))\r\n    }\r\n}\r\n\r\nlet getByType = (menu_type)=>{\r\n    let list = db.select(\"select * from jqp_menu where menu_type=#{menu_type}\");\r\n\r\n    let tree = filter_tree(\r\n        tree_field_map(\r\n            list_to_tree(list || [],treeId),\r\n            {\r\n                \"label\":\"name\"\r\n            }\r\n        ),\r\n        menuIds\r\n    );\r\n    let filterButtons = (items) => {\r\n        return items.filter(item=>{\r\n            item.children = filterButtons(item.children);\r\n            return item.is_button == \'no\'\r\n        })\r\n    }\r\n\r\n    let buttons = new HashSet();\r\n\r\n    let getButtons = (items) =>{\r\n        for(index,item in items){\r\n            if(item.is_button == \'yes\' && not_blank(item.auth_code)){\r\n\r\n                buttons.add(item.auth_code);\r\n            }\r\n            getButtons(item.children);\r\n        }\r\n    }\r\n    getButtons(tree);\r\n\r\n    let urls = new HashSet();\r\n\r\n    let getUrls = (items) =>{\r\n        for(index,item in items){\r\n            if(not_blank(item.url)){\r\n                urls.add(item.url);\r\n            }\r\n            if(not_blank(item.urls)){\r\n                let arr = item.urls.split(\"\\n\");\r\n                for(i,url in arr){\r\n                    if(not_blank(url)){\r\n                        urls.add(url)\r\n                    }\r\n                }\r\n            }\r\n            getUrls(item.children);\r\n        }\r\n    }\r\n    getUrls(tree);\r\n    urls.addAll(commonUrls());\r\n    return {\r\n        buttons:buttons,\r\n        urls:urls,\r\n        menus:filterButtons(tree),\r\n    }\r\n}\r\n\r\n\r\n\r\nreturn {\r\n    pc:getByType(\"pc\"),\r\n    mobile:getByType(\"mobile\"),\r\n    userId:userId\r\n};'),('magic-api/function/会话/设置用户.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"8489368035364209b6a4b95781dfbd97\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"c8909e0f38c74d11871708d55bcae5c3\",\r\n  \"name\" : \"设置用户\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717395476961,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/setUser\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"user\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport request;\r\nimport \'@/session/getUserPermission\' as getUserPermission;\r\n\r\nif(not_null(user)){\r\n    request.get().getSession().setAttribute(\"login_user\",user.id)\r\n    request.get().getSession().setAttribute(\"user_session\",getUserPermission());\r\n}else{\r\n    request.get().getSession().removeAttribute(\"login_user\");\r\n    request.get().getSession().removeAttribute(\"user_session\");\r\n}\r\n\r\nreturn null;'),('magic-api/function/工具类/', 'this is directory'),('magic-api/function/工具类/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"d7286d9a91dc43f5a4e911c6055c0853\",\r\n  \"name\" : \"工具类\",\r\n  \"type\" : \"function\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"/utils\",\r\n  \"createTime\" : 1716533486817,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/function/工具类/json转amis页面.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"1223f5b7f79f4425928c629242b82427\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"d7286d9a91dc43f5a4e911c6055c0853\",\r\n  \"name\" : \"json转amis页面\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720061435788,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"amis_page\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"json\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport cn.hutool.json.JSONUtil\r\nimport response;\r\n\r\nlet jsonStr = JSONUtil.toJsonPrettyStr(json);\r\n\r\nlet html = `\r\n\r\n<!DOCTYPE html>\r\n<html lang=\"zh\">\r\n<head>\r\n    <meta charset=\"UTF-8\" />\r\n    <title>jqp-admin-v2低代码开发平台</title>\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n    <meta\r\n            name=\"viewport\"\r\n            content=\"width=device-width, initial-scale=1, maximum-scale=1\"\r\n    />\r\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />\r\n    <link rel=\"stylesheet\" href=\"/amis/sdk.css\" />\r\n    <link rel=\"stylesheet\" href=\"/amis/helper.css\" />\r\n    <link rel=\"stylesheet\" href=\"/amis/iconfont.css\" />\r\n\r\n    <!-- 这是默认主题所需的，如果是其他主题则不需要 -->\r\n    <!-- 从 1.1.0 开始 sdk.css 将不支持 IE 11，如果要支持 IE11 请引用这个 css，并把前面那个删了 -->\r\n    <!-- <link rel=\"stylesheet\" href=\"sdk-ie11.css\" /> -->\r\n    <!-- 不过 amis 开发团队几乎没测试过 IE 11 下的效果，所以可能有细节功能用不了，如果发现请报 issue -->\r\n    <style>\r\n        html,\r\n        body,\r\n        .app-wrapper {\r\n            position: relative;\r\n            width: 100%;\r\n            height: 100%;\r\n            margin: 0;\r\n            padding: 0;\r\n        }\r\n        .cxd-Tabs-pane{\r\n            padding:0px !important;\r\n        }\r\n        .cxd-FileControl .disabled .cxd-Button{\r\n            display: none !important;\r\n        }\r\n        .cxd-ImageControl .is-disabled .cxd-ImageControl-addBtn{\r\n            display: none !important;\r\n        }\r\n    </style>\r\n</head>\r\n<body>\r\n<div id=\"root\" class=\"app-wrapper\"></div>\r\n<script src=\"/amis/sdk.js\"></script>\r\n<script src=\"/amis/rest.js\"></script>\r\n<script src=\"/amis/tinymce.js\"></script>\r\n\r\n<script type=\"text/javascript\">\r\n    let amis_ = amisRequire(\'amis/embed\');\r\n    // 通过替换下面这个配置来生成不同页面\r\n    let AMIS_JSON = ${jsonStr};\r\n    window.amisScoped = amis_.embed(\'#root\', AMIS_JSON,{},{\r\n        responseAdaptor: function(api, response, query, request){\r\n            if(response.status == 1){\r\n                //需要登录;\r\n                //前后端不分离的\r\n                if(window.top){\r\n                    window.top.location.href=\"/\";\r\n                }else{\r\n                    window.location.href=\"/\";\r\n                }\r\n            }\r\n\r\n            return response;\r\n        }\r\n    });\r\n</script>\r\n</body>\r\n</html>\r\n\r\n\r\n`;\r\nresponse.setHeader(\"Content-Type\",\"text/html;charset=utf-8\")\r\n\r\nresponse.getOutputStream().write(html.getBytes(\"UTF-8\"))\r\n\r\nreturn response.end();'),('magic-api/function/工具类/列表转树.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"738aae35b78f4cdabc311f086752ef20\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"d7286d9a91dc43f5a4e911c6055c0853\",\r\n  \"name\" : \"列表转树\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1717383649864,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/list_to_tree\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"list\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.util.Collection\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"treeId\",\r\n    \"value\" : null,\r\n    \"description\" : \"需要过滤的节点\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.lang.String\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nif(is_null(list)){\r\n    return [];\r\n}\r\nlet menuMap = {};\r\nlet parentIdMap = {};\r\nfor(index,item in list){\r\n    menuMap[item.id] = item;\r\n    item.children = [];\r\n    if(not_blank(item.parent_id)){\r\n        if(!parentIdMap.containsKey(item.parent_id)){\r\n            parentIdMap[item.parent_id] = [];\r\n        }\r\n        parentIdMap[item.parent_id].add(item);\r\n    }\r\n}\r\nlet roots = [];\r\nfor(index,item in list){\r\n    if(parentIdMap.containsKey(item.id)){\r\n        item.children = parentIdMap[item.id];\r\n    }\r\n    if(is_null(item.parent_id) || !menuMap.containsKey(item.parent_id)){\r\n        roots.add(item);\r\n    }\r\n}\r\n\r\nif(not_blank(treeId)){\r\n    let tree = menuMap[treeId]\r\n    if(not_null(tree)){\r\n        let parent = menuMap[tree.parent_id];\r\n        if(not_null(parent)){\r\n            parent.children.remove(tree);\r\n        }else{\r\n            roots.remove(tree);\r\n        }\r\n    }\r\n}\r\n\r\n\r\nreturn roots;'),('magic-api/function/工具类/匹配url.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"87b1fbe97a1d4de9a3fb93448f1ea3d5\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"d7286d9a91dc43f5a4e911c6055c0853\",\r\n  \"name\" : \"匹配url\",\r\n  \"createTime\" : 1717379773214,\r\n  \"updateTime\" : null,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/matchUrl\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"url\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"patterns\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.util.Collection\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport org.springframework.util.AntPathMatcher\r\n\r\nlet matcher = new AntPathMatcher();\r\n\r\nfor(index,pattern in patterns){\r\n    if(matcher.match(pattern,url)){\r\n        return true;\r\n    }\r\n}\r\nreturn false;'),('magic-api/function/工具类/树字段映射.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"copy1716792740618d56787\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"d7286d9a91dc43f5a4e911c6055c0853\",\r\n  \"name\" : \"树字段映射\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1716793324633,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/tree_field_map\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"tree\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.util.Collection\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"fieldMap\",\r\n    \"value\" : null,\r\n    \"description\" : \"字段映射\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.util.Map\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\n\r\n\r\nlet fn = (list) ->{\r\n    if(is_null(list)){\r\n        return;\r\n    }\r\n    for(index,item in list){\r\n        for(key,value in fieldMap){\r\n            item[key] = item[value];\r\n        }\r\n        fn(item.children);\r\n    }\r\n}\r\n\r\nfn(tree);\r\n\r\nreturn tree;'),('magic-api/function/工具类/树过滤.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"7d9d9cc478df4cd3a9a3431c1e079cec\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"d7286d9a91dc43f5a4e911c6055c0853\",\r\n  \"name\" : \"树过滤\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1718328835326,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"filter_tree\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"tree\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.util.Collection\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"ids\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.util.Collection\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport cn.hutool.json.JSONUtil\r\nimport log;\r\nlet fn = (obj) => {\r\n    if(ids.contains(obj.id)){\r\n        return true;\r\n    }\r\n    for(index,child in (obj.children || [])){\r\n        if(fn(child)){\r\n            return true;\r\n        }\r\n    }\r\n    return false;\r\n}\r\n\r\n//log.info(\"tree:{}\",JSONUtil.toJsonStr(tree))\r\nlet filter = (items) => {\r\n    if(is_null(items)){\r\n        return [];\r\n    }\r\n    let new_items = [];\r\n    for(index,item in items){\r\n        if(ids.contains(item.id)){\r\n            //如果父节点 在过滤里面,子节点直接不用判断,全部包含\r\n            new_items.add(item);\r\n        }else{\r\n            //如果子节点在里面,父节点也应该在里面\r\n            item.children = filter(item.children);\r\n            if(fn(item)){\r\n                new_items.add(item);\r\n            }\r\n        }\r\n    }\r\n    return new_items;\r\n}\r\n\r\nreturn filter(tree);'),('magic-api/function/数据库操作/', 'this is directory'),('magic-api/function/数据库操作/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"1ffd86f2e28f4ea38a292ff728ba51a7\",\r\n  \"name\" : \"数据库操作\",\r\n  \"type\" : \"function\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"db\",\r\n  \"createTime\" : 1716861742345,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/function/数据库操作/保存或更新.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"acd044960f1e485f95e02c676cc6e2bc\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1ffd86f2e28f4ea38a292ff728ba51a7\",\r\n  \"name\" : \"保存或更新\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1719816697980,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/saveOrUpdate\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"tableName\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.lang.String\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"obj\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.util.Map\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport cn.hutool.core.util.IdUtil\r\n\r\nif(is_blank(obj.id::string)){\r\n    obj.id = IdUtil.getSnowflake().nextId();\r\n    db.camel().table(tableName).insert(obj)\r\n}else{\r\n    db.camel().table(tableName).primary(\"id\").update(obj,true)\r\n}\r\n\r\nreturn obj'),('magic-api/function/数据库操作/获取表列.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"909b9addd5fd4430ac63d8bf5c77f9d6\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1ffd86f2e28f4ea38a292ff728ba51a7\",\r\n  \"name\" : \"获取表列\",\r\n  \"createTime\" : 1716862654425,\r\n  \"updateTime\" : null,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getTableColumns\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"tableName\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.lang.String\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nreturn \'Hello magic-api\''),('magic-api/function/流程/', 'this is directory'),('magic-api/function/流程/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"1761a7c600fd49088232dc2c96cfc70e\",\r\n  \"name\" : \"流程\",\r\n  \"type\" : \"function\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"/flow\",\r\n  \"createTime\" : 1719883673805,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}'),('magic-api/function/流程/开启下一个任务.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"eac52c744be24eafbb5fee68c09658ea\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1761a7c600fd49088232dc2c96cfc70e\",\r\n  \"name\" : \"开启下一个任务\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1720064533040,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/createNextTask\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"nextNode\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"flow_instance\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport \'@/flow/getCandidateUserIds\' as getCandidateUserIds;\r\nimport \'@/db/saveOrUpdate\' as saveOrUpdate;\r\n\r\n\r\nlet userIds = getCandidateUserIds(nextNode,flow_instance,context);\r\n\r\nif(nextNode.properties.checkType == \"任意成员审核通过\" || is_blank(userIds)){\r\n    //如果无人,就当成非会签任务\r\n    let nextTask = {\r\n        flow_instance_id:flow_instance.id,\r\n        task_name:nextNode.text.value,\r\n        task_id:nextNode.id,\r\n        start_time:now(),\r\n        candidate_user_ids:userIds,\r\n        page_code:nextNode.properties.page\r\n    };\r\n    saveOrUpdate(\'jqp_flow_instance_task\',nextTask);\r\n\r\n    flow_instance.current_task_id = nextTask.id;\r\n    flow_instance.current_task_name = nextTask.task_name;\r\n\r\n    saveOrUpdate(\'jqp_flow_instance\',flow_instance);\r\n\r\n}else if(nextNode.properties.checkType == \"全部成员审核通过\"){\r\n    let userList = userIds.split(\",\");\r\n    let jointly_sign_id = IdUtil.getSnowflake().nextId();\r\n\r\n    let nextTask = null;\r\n    for(index,uid in userList){\r\n        nextTask = {\r\n            flow_instance_id:flow_instance.id,\r\n            task_name:nextNode.text.value,\r\n            task_id:nextNode.id,\r\n            start_time:now(),\r\n            candidate_user_ids:uid,\r\n            jointly_sign_id:jointly_sign_id,\r\n            page_code:nextNode.properties.page\r\n        };\r\n        saveOrUpdate(\'jqp_flow_instance_task\',nextTask);\r\n    }\r\n\r\n    flow_instance.current_task_id = nextTask.id;\r\n    flow_instance.current_task_name = nextTask.task_name;\r\n\r\n    saveOrUpdate(\'jqp_flow_instance\',flow_instance);\r\n}\r\n'),('magic-api/function/流程/流程上下文.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"16e63a531d1143a0b0911da30aeed3ee\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1761a7c600fd49088232dc2c96cfc70e\",\r\n  \"name\" : \"流程上下文\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1719883685604,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getFlowContext\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"config\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : \"java.lang.String\",\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport cn.hutool.json.JSONUtil\r\n\r\nconfig = JSONUtil.parseObj(config);\r\n\r\nlet nodes = config.nodes;\r\nlet edges = config.edges;\r\n\r\nlet startNode = null;\r\nlet endNode = null;\r\n\r\nlet nodeMap = {};\r\nlet edgeMap = {};\r\nfor(index,node in nodes){\r\n    if(node.type == \'JqpStart\'){\r\n        startNode = node;\r\n    }else if(node.type == \'JqpEnd\'){\r\n        endNode = node;\r\n    }\r\n    nodeMap[node.id] = node;\r\n}\r\nfor(index,edge in edges){\r\n    if(!edgeMap.containsKey(edge.sourceNodeId)){\r\n        edgeMap[edge.sourceNodeId] = [];\r\n    }\r\n    edgeMap[edge.sourceNodeId].push(edge);\r\n}\r\n\r\n\r\nreturn {\r\n    //开始节点后的第一个节点,作为开始节点\r\n    startNode:nodeMap[edgeMap[startNode.id][0].targetNodeId],\r\n    endNode,\r\n    nodeMap,\r\n    edgeMap\r\n};'),('magic-api/function/流程/获取下一个任务节点.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"6ab1603fd7c9423c9e6817f4485c54e6\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1761a7c600fd49088232dc2c96cfc70e\",\r\n  \"name\" : \"获取下一个任务节点\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1719994884695,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getNextNode\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"node\",\r\n    \"value\" : null,\r\n    \"description\" : \"当前节点\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"flowContext\",\r\n    \"value\" : null,\r\n    \"description\" : \"流程上下文\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"context\",\r\n    \"value\" : null,\r\n    \"description\" : \"上下文参数\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"edge\",\r\n    \"value\" : null,\r\n    \"description\" : \"流转\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"edgeIds\",\r\n    \"value\" : null,\r\n    \"description\" : \"全部流转id\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"edgeNames\",\r\n    \"value\" : null,\r\n    \"description\" : \"全部流转名称\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport org.ssssssss.script.MagicScriptContext\r\nimport \'@/flow/getNextNode\' as getNextNode;\r\nimport log;\r\n\r\nlog.info(\"传入edgeIds:{}\",edgeIds);\r\nif(is_blank(edgeIds)){\r\n    edgeIds = edge.id;\r\n    edgeNames = edge.text.value;\r\n}\r\nif(node.type == \'JqpUserTask\'){\r\n    return {\r\n        node,\r\n        edge,\r\n        edgeIds,\r\n        edgeNames\r\n    };\r\n}\r\nif(node.type == \'JqpEnd\'){\r\n    return {\r\n        node:null,\r\n        edge,\r\n        edgeIds,\r\n        edgeNames\r\n    };\r\n}\r\nif(node.type == \'JqpCondition\'){\r\n    let nextEdges = flowContext.edgeMap[node.id];\r\n    //nextEdges\r\n    let nextEdge = null;\r\n    for(index,edge in nextEdges){\r\n        if(edge.properties.checkType == \"表达式\"){\r\n            let magicScriptContext = new MagicScriptContext();\r\n            let flag = magicScriptContext.eval(edge.properties.checkConfig,context);\r\n            if(flag){\r\n                nextEdge = edge;\r\n                break;\r\n            }\r\n        }else if(edge.checkType == \"magicApi\"){\r\n            let flag = magic.execute(\"post\",edge.properties.checkConfig,context);\r\n            if(flag){\r\n                nextEdge = edge;\r\n                break;\r\n            }\r\n        }\r\n    }\r\n    if(nextEdge == null){\r\n        return {\r\n            node:null,\r\n            edge,\r\n            edgeIds,\r\n            edgeNames\r\n        };\r\n    }\r\n    return getNextNode(flowContext.nodeMap[nextEdge.targetNodeId],flowContext,context,nextEdge,edgeIds+\",\"+nextEdge.id,edgeNames+\",\"+nextEdge.text.value)\r\n}\r\n\r\nreturn {\r\n    node:null,\r\n    edge,\r\n    edgeIds,\r\n    edgeNames\r\n};'),('magic-api/function/流程/获取候选人.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"89785c844db44acab41c4f3b111e8c13\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1761a7c600fd49088232dc2c96cfc70e\",\r\n  \"name\" : \"获取候选人\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1719884076932,\r\n  \"lock\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"/getCandidateUserIds\",\r\n  \"description\" : null,\r\n  \"returnType\" : null,\r\n  \"mappingPath\" : null,\r\n  \"parameters\" : [ {\r\n    \"name\" : \"task\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"flow_instance\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  }, {\r\n    \"name\" : \"context\",\r\n    \"value\" : null,\r\n    \"description\" : null,\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ]\r\n}\r\n================================\r\nimport magic;\r\n\r\nlet properties = task.properties;\r\nlet userType = properties.userType;\r\n\r\nif(userType == \"提交人审核\"){\r\n    return flow_instance.create_user_id;\r\n}\r\nif(userType == \"主管\"){\r\n    //第几级主管\r\n    let depLevel = properties.devLevel;\r\n    return null;\r\n}\r\nif(userType == \"角色\"){\r\n    //角色编号\r\n    let roleCodes = properties.roleCodes;\r\n\r\n    return db.select(\"\"\"\r\n        select distinct u.id from jqp_role r \r\n        left join jqp_user u on find_in_set(r.id,u.role_ids) > 0 \r\n        where find_in_set(r.code,#{roleCodes}) > 0\r\n    \"\"\").map(item->item.id).join(\",\");\r\n\r\n}\r\nif(userType == \"通过接口获取\"){\r\n    let userApi = properties.userApi;\r\n    return magic.execute(\"post\",userApi,context).join(\",\");\r\n}\r\nreturn null;'),('magic-api/task/', 'this is directory');
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`spring_session` WRITE;
DELETE FROM `jqp-admin-v2`.`spring_session`;
INSERT INTO `jqp-admin-v2`.`spring_session` (`PRIMARY_ID`,`SESSION_ID`,`CREATION_TIME`,`LAST_ACCESS_TIME`,`MAX_INACTIVE_INTERVAL`,`PRINCIPAL_NAME`,`EXPIRY_TIME`) VALUES ('19a49c60-e1ae-43a1-9c26-a7f7666de031', 'bee71ade-e58d-437a-9017-73940f9228af', 1720746678021, 1720746678264, 7200, NULL, 1720753878264),('695608b4-9a4a-49c0-8852-e2e5e35e0f92', 'a78fc01c-e6d6-4db8-9ed7-57607e2330e7', 1720746831398, 1720746831398, 7200, NULL, 1720754031398),('e4b941c3-fdec-426b-bc8c-a35812eb4c05', '3f45abd7-6da4-4369-8707-9050b436b97c', 1720746832291, 1720746921913, 7200, NULL, 1720754121913);
UNLOCK TABLES;
COMMIT;
BEGIN;
LOCK TABLES `jqp-admin-v2`.`spring_session_attributes` WRITE;
DELETE FROM `jqp-admin-v2`.`spring_session_attributes`;
INSERT INTO `jqp-admin-v2`.`spring_session_attributes` (`SESSION_PRIMARY_ID`,`ATTRIBUTE_NAME`,`ATTRIBUTE_BYTES`) VALUES ('e4b941c3-fdec-426b-bc8c-a35812eb4c05', 'captcha', 0xACED0005737200176A6176612E7574696C2E4C696E6B6564486173684D617034C04E5C106CC0FB0200015A000B6163636573734F72646572787200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000274000474696D657372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B020000787000000190A4858AF9740004636F64657400046836454B7800),('e4b941c3-fdec-426b-bc8c-a35812eb4c05', 'user_session', 0xACED0005737200176A6176612E7574696C2E4C696E6B6564486173684D617034C04E5C106CC0FB0200015A000B6163636573734F72646572787200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000374000270637371007E00003F4000000000000C77080000001000000003740007627574746F6E73737200116A6176612E7574696C2E48617368536574BA44859596B8B7340300007870770C000000103F4000000000000774000C6A717044696344656C65746574000B6A7170557365724564697474000D6A7170526F6C6544656C65746574000B6A7170446963517565727974000B6A7170526F6C654564697474000A6A71704469634564697474000D6A71705573657244656C6574657874000475726C737371007E0006770C000000403F400000000000277400182F61646D696E2F636F6D6D6F6E2F6A71705F706167652F2A7400172F61646D696E2F6A71704469632F6F7074696F6E732F2A7400142F61646D696E2F6A7170526F6C652F717565727974000A2F706167652F706167657400102F61646D696E2F6A71704D656E752F2A74001A2F61646D696E2F636F6D6D6F6E2F6A71705F6469632F736176657400142F61646D696E2F6A7170506167652F6765742F2A74001B2F61646D696E2F636F6D6D6F6E2F6A71705F757365722F7361766574000A2F706167652F66696C657400162F706167652F666C6F77496E7374616E63655461736B74000A2F706167652F6D656E757400092F706167652F6469637400182F61646D696E2F636F6D6D6F6E2F6A71705F6D656E752F2A7400172F61646D696E2F6A71704D656E752F757365724D656E757400152F61646D696E2F6A71704469632F6974656D732F2A74000F2F706167652F6D616769632D6170697400232F61646D696E2F636F6D6D6F6E2F6A71705F6469635F6974656D2F64656C6574652F2A7400142F61646D696E2F6A7170557365722F71756572797400152F61646D696E2F6A7170557365722F6C6F676F757474000F2F616D69732D656469746F722F2A2A74000D2F61646D696E2F66696C652F2A74000A2F706167652F666C6F7774001D2F61646D696E2F6A7170557365722F6765745573657253657373696F6E74000A2F706167652F726F6C657400072F68746D6C2F2A74000F2F706167652F746573744F726465727400132F61646D696E2F6A71704469632F717565727974001F2F61646D696E2F636F6D6D6F6E2F6A71705F726F6C652F64656C6574652F2A74000B2F706167652F696E6465787400132F61646D696E2F6A7170557365722F7361766574001B2F61646D696E2F636F6D6D6F6E2F6A71705F726F6C652F736176657400012F7400032F2A2A7400102F61646D696E2F6A7170506167652F2A74000D2F6D616769632F7765622F2A2A74001E2F61646D696E2F636F6D6D6F6E2F6A71705F6469632F64656C6574652F2A7400072F706167652F2A74001F2F61646D696E2F636F6D6D6F6E2F6A71705F6469635F6974656D2F7361766574000A2F706167652F75736572787400056D656E7573737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A657870000000027704000000027371007E00003F4000000000000C7708000000100000000B7400026964740013313739343938333131353530363435303433327400046E616D6574000CE7B3BBE7BB9FE9858DE7BDAE74000375726C70740009706172656E745F696470740003736571737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000A740009617574685F636F646574000074000475726C737074000969735F627574746F6E7400026E6F7400096D656E755F7479706574000270637400086368696C6472656E7371007E0039000000087704000000087371007E00003F4000000000000C7708000000100000000B71007E003C7400133137393439383332353230373731383239373671007E003E7400096D616769632D61706971007E004071007E002071007E00417400133137393439383331313535303634353034333271007E004271007E004571007E004674000071007E004871007E003371007E00497400026E6F71007E004B740002706371007E004D7371007E003900000000770400000000787400056C6162656C71007E005178007371007E00003F4000000000000C7708000000100000000B71007E003C7400133137393439383333333937313731363530353671007E003E74000CE9A1B5E99DA2E9858DE7BDAE71007E004071007E001471007E00417400133137393439383331313535303634353034333271007E00427371007E00430000001471007E004674000071007E004874005E2F706167652F2A0A2F68746D6C2F2A0A2F61646D696E2F6A7170506167652F2A0A2F61646D696E2F636F6D6D6F6E2F6A71705F706167652F2A0A2F616D69732D656469746F722F2A2A0A2F61646D696E2F6A7170506167652F6765742F2A71007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E005A78007371007E00003F4000000000000C7708000000100000000B71007E003C7400133137393439383334303436313536333038343871007E003E74000CE88F9CE58D95E9858DE7BDAE71007E004071007E001B71007E00417400133137393439383331313535303634353034333271007E00427371007E00430000001E71007E004674000071007E00487400292F61646D696E2F6A71704D656E752F2A0A2F61646D696E2F636F6D6D6F6E2F6A71705F6D656E752F2A71007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E006478007371007E00003F4000000000000C7708000000100000000B71007E003C7400133137393533363138333130393731333130303871007E003E74000CE695B0E68DAEE5AD97E585B871007E004071007E001C71007E00417400133137393439383331313535303634353034333271007E00427371007E00430000002871007E004674000071007E00487071007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E006E78007371007E00003F4000000000000C7708000000100000000B71007E003C7400133138303337323036343438343138393739383471007E003E74000CE69687E4BBB6E7AEA1E7908671007E004071007E001971007E00417400133137393439383331313535303634353034333271007E00427371007E00430000003271007E00467071007E004871007E002571007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E007778007371007E00003F4000000000000C7708000000100000000B71007E003C7400133138303635373730393433303830323032323471007E003E74000CE6B581E7A88BE7AEA1E7908671007E004071007E002671007E00417400133137393439383331313535303634353034333271007E00427371007E00430000003C71007E00467071007E00487071007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E007F78007371007E00003F4000000000000C7708000000100000000B71007E003C7400133138303830363534343136363036343533373671007E003E74000CE6B58BE8AF95E8AEA2E58D9571007E004071007E002A71007E00417400133137393439383331313535303634353034333271007E00427371007E00430000004671007E00467071007E00487071007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E008778007371007E00003F4000000000000C7708000000100000000B71007E003C7400133138303836363739313430393630323536303071007E003E74000CE6B581E7A88BE4BBBBE58AA171007E004071007E001A71007E00417400133137393439383331313535303634353034333271007E00427371007E00430000005071007E00467071007E00487071007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E008F78007871007E005771007E003F78007371007E00003F4000000000000C7708000000100000000B71007E003C7400133137393539393930393939383631313235313271007E003E74000CE7BB84E7BB87E69CBAE69E8471007E00407071007E00417071007E004271007E005C71007E004674000071007E00487071007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000027704000000027371007E00003F4000000000000C7708000000100000000B71007E003C7400133137393539393931353830313031313430343871007E003E74000CE794A8E688B7E7AEA1E7908671007E004071007E003771007E00417400133137393539393930393939383631313235313271007E004271007E004571007E004674000071007E00487071007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E009E78007371007E00003F4000000000000C7708000000100000000B71007E003C7400133137393630323135313831383434373636373271007E003E74000CE8A792E889B2E7AEA1E7908671007E004071007E002871007E00417400133137393539393930393939383631313235313271007E00427371007E00430000000871007E004674000071007E00487071007E00497400026E6F71007E004B740002706371007E004D7371007E0039000000007704000000007871007E005771007E00A678007871007E005771007E009778007878007400066D6F62696C657371007E00003F4000000000000C7708000000100000000371007E00057371007E0006770C000000103F400000000000007871007E000F7371007E0006770C000000103F4000000000000B71007E001271007E00277400112F706167652F6D6F62696C6554657374327400112F706167652F6D6F62696C65546573743171007E001E71007E002D71007E00237400102F706167652F6D6F62696C655573657274000E2F706167652F6D6F62696C654D7971007E003071007E00317871007E00387371007E0039000000037704000000037371007E00003F4000000000000C7708000000100000000B7400026964740013313830313432323835363237313638333538347400046E616D65740007E5AFBCE888AA3174000375726C70740009706172656E745F6964707400037365717371007E0043000003E8740009617574685F636F64657074000475726C737074000969735F627574746F6E7400026E6F7400096D656E755F747970657400066D6F62696C6571007E004D7371007E0039000000037704000000037371007E00003F4000000000000C7708000000100000000B71007E00B77400133138303134323332323838383934353636343071007E00B9740007E6B58BE8AF953171007E00BB71007E00B271007E00BC7400133138303134323238353632373136383335383471007E00BD71007E004571007E00BF7071007E00C07071007E00C17400026E6F71007E00C37400066D6F62696C6571007E004D7371007E0039000000007704000000007871007E005771007E00C878007371007E00003F4000000000000C7708000000100000000B71007E00B77400133138303134323333373332343036323331303471007E00B9740007E6B58BE8AF953271007E00BB71007E00B171007E00BC7400133138303134323238353632373136383335383471007E00BD71007E005C71007E00BF7071007E00C07071007E00C17400026E6F71007E00C37400066D6F62696C6571007E004D7371007E0039000000007704000000007871007E005771007E00CF78007371007E00003F4000000000000C7708000000100000000B71007E00B77400133138303134343235363238323330393432373271007E00B974000CE794A8E688B7E7AEA1E7908671007E00BB71007E00B371007E00BC7400133138303134323238353632373136383335383471007E00BD71007E006671007E00BF7071007E00C07071007E00C17400026E6F71007E00C37400066D6F62696C6571007E004D7371007E0039000000007704000000007871007E005771007E00D678007871007E005771007E00BA78007371007E00003F4000000000000C7708000000100000000B71007E00B77400133138303134323330333536393134323537393271007E00B9740007E5AFBCE888AA3271007E00BB7071007E00BC7071007E00BD7371007E0043000003F271007E00BF7071007E00C07071007E00C17400026E6F71007E00C37400066D6F62696C6571007E004D7371007E0039000000027704000000027371007E00003F4000000000000C7708000000100000000B71007E00B77400133138303134323335313937303939313330383871007E00B9740008E6B58BE8AF95313171007E00BB7071007E00BC7400133138303134323330333536393134323537393271007E00BD71007E004571007E00BF7071007E00C07071007E00C17400026E6F71007E00C37400066D6F62696C6571007E004D7371007E0039000000017704000000017371007E00003F4000000000000C7708000000100000000B71007E00B77400133138303134323336343037323831363634303071007E00B9740007E6B58BE8AF953171007E00BB7400112F706167652F6D6F62696C65546573743171007E00BC7400133138303134323335313937303939313330383871007E00BD71007E004571007E00BF7071007E00C07071007E00C17400026E6F71007E00C37400066D6F62696C6571007E004D7371007E0039000000007704000000007871007E005771007E00EB78007871007E005771007E00E478007371007E00003F4000000000000C7708000000100000000B71007E00B77400133138303134323337343735363936373231393271007E00B9740008E6B58BE8AF95323271007E00BB7400112F706167652F6D6F62696C65546573743271007E00BC7400133138303134323330333536393134323537393271007E00BD71007E005C71007E00BF7071007E00C07071007E00C17400026E6F71007E00C37400066D6F62696C6571007E004D7371007E0039000000007704000000007871007E005771007E00F378007871007E005771007E00DD78007371007E00003F4000000000000C7708000000100000000B71007E00B77400133138303134343837363236383338383335323071007E00B9740006E68891E79A8471007E00BB71007E00B471007E00BC7071007E00BD7371007E0043000003FC71007E00BF7071007E00C07071007E00C17400026E6F71007E00C37400066D6F62696C6571007E004D7371007E0039000000007704000000007871007E005771007E00FB7800787800740006757365724964740013313739363030303132303337363338393633327800),('e4b941c3-fdec-426b-bc8c-a35812eb4c05', 'login_user', 0xACED000574001331373936303030313230333736333839363332);
UNLOCK TABLES;
COMMIT;
